Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Jan 22, 2012
  1. *** empty log message ***

    gdbadmin authored
Commits on Jan 21, 2012
  1. daily update

    amodra authored
  2. *** empty log message ***

    gdbadmin authored
Commits on Jan 20, 2012
  1. daily update

    amodra authored
  2. Add .d8 suffix support to x86 assembler

    hjl authored
    gas/
    
    2012-01-20  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* config/tc-i386.c (_i386_insn): Replace disp32_encoding with
    	disp_encoding.
    	(md_assemble): Updated.
    	(output_branch): Likewise.
    	(parse_insn): Support .d8 suffix.
    	(build_modrm_byte): Fake zero displacement for .d8 and .d32
    	suffixes.
    
    	* doc/c-i386.texi: Document .d8 suffix.
    
    gas/testsuite/
    
    2012-01-20  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* gas/i386/disp32.s: Add tests for .d8 suffix.
    	* gas/i386/x86-64-disp32.s: Likewise.
    
    	* gas/i386/disp32.d: Updated.
    	* gas/i386/x86-64-disp32.d: Likewise.
  3. gdb/gdbserver/

    jkratoch authored
    	Code cleanup.
    	* linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
  4. 2012-01-20 Pedro Alves <palves@redhat.com>

    palves authored
    	* gdb.python/py-finish-breakpoint.py: Fix typo.
  5. PR binutils/13534

    nickc authored
    	* archive.c (_bfd_ar_sizepad): New function. Correctly install and
    	pad the size field in an archive header.
    	(_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
    	function for the archive size field.
    	(bfd_generic_openr_next_archived_file): Likewise.
    	(do_slurp_coff_armap): Likewise.
    	(_bfd_write_archive_contents): Likewise.
    	(_bfd_bsd44_write_ar_hdr): Use the new function.
    	(bfd_ar_hdr_from_filesystem): Likewise.
    	(_bfd_write_archive_contents): Likewise.
    	(bsd_write_armap): Likewise.
    	(coff_write_armap): Likewise.
    	* archive64.c (bfd_elf64_archive_write_armap): Likewise.
    	* bfdio.c (bfd_bread): Use correct type for archive element
    	sizes.
    	* ar.c (open_inarch): Likewise.
    	(extract_file): Likewise.
    	* libbfd-in.h (struct areltdata): Use correct types for
    	parsed_size and extra_size fields.
    	Prototype _bfd_ar_sizepad function.
    	* libbfd.h: Regenerate.
  6. * fhandler.h (fhandler_registry::opendir): Declare.

    corinna authored
    	* fhandler_registry.cc (fhandler_registry::opendir): New function.
  7. 2012-01-20 Tristan Gingold <gingold@adacore.com>

    gingold authored
    	* od-macho.c (OPT_SEG_SPLIT_INFO): New macro.
    	(options): Add an entry for seg_split_info.
    	(mach_o_help): Document it.
    	(dump_segment_split_info): New function.
    	(dump_load_command): Handle seg_split_info.
  8. * gdbarch.sh (find_memory_regions): New callback.

    uweigand authored
    	* gdbarch.c, gdbarch.h: Regenerate.
    
    	* gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
    	callback before falling back to target method.
    
    	* linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
    	(linux_target_install_ops): No longer install it.
    
    	* linux-tdep.c (linux_find_memory_regions): New function.
    	(linux_init_abi): Install it.
  9. * gdbarch.sh (make_corefile_notes): New architecture callback.

    uweigand authored
    	* gdbarch.c: Regenerate.
    	* gdbarch.h: Likewise.
    
    	* gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
    	before target_make_corefile_notes.  If NULL is returned, the
    	target does not support core file generation.
    
    	* linux-nat.c: Include "linux-tdep.h".
    	(find_signalled_thread, find_stop_signal): Remove.
    	(linux_nat_do_thread_registers): Likewise.
    	(struct linux_nat_corefile_thread_data): Likewise.
    	(linux_nat_corefile_thread_callback): Likewise.
    	(iterate_over_spus): Likewise.
    	(struct linux_spu_corefile_data): Likewise.
    	(linux_spu_corefile_callback): Likewise.
    	(linux_spu_make_corefile_notes): Likewise.
    	(linux_nat_collect_thread_registers): New function.
    	(linux_nat_make_corefile_notes): Replace contents by call to
    	linux_make_corefile_notes passing linux_nat_collect_thread_registers
    	as native-only callback.
    
    	* linux-tdep.h: Include "bfd.h".
    	(struct regcache): Add forward declaration.
    	(linux_collect_thread_registers_ftype): New typedef.
    	(linux_make_corefile_notes): Add prototype.
    	* linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
    	"regset.h", and "elf-bfd.h".
    	(find_signalled_thread, find_stop_signal): New functions.
    	(linux_spu_make_corefile_notes): Likewise.
    	(linux_collect_thread_registers): Likewise.
    	(struct linux_corefile_thread_data): New data structure.
    	(linux_corefile_thread_callback): New funcion.
    	(linux_make_corefile_notes): Likewise.
    	(linux_make_corefile_notes_1): Likewise.
    	(linux_init_abi): Install it.
  10. * elf.c (elfcore_write_prpsinfo): Provide unconditionally.

    uweigand authored
    	Return NULL if core file generation is unsupported.
    	(elfcore_write_prstatus): Likewise.
    	* elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
    	(elf_backend_write_core_note): Define.
  11. * gdbarch.sh (info_proc): New callback.

    uweigand authored
    	* gdbarch.c, gdbarch.h: Regenerate.
    
    	* infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
    	before falling back to the target info_proc callback.
    
    	* linux-nat.c: Do not include "cli/cli-utils.h".
    	(linux_nat_info_proc): Remove.
    	(linux_target_install_ops): No longer install it.
    
    	* linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
    	(read_mapping): New function.
    	(linux_info_proc): Likewise.
    	(linux_init_abi): Install it.
  12. ChangeLog:

    uweigand authored
    	* defs.h (enum info_proc_what): Moved here from linux-nat.c
    	* infcmd.c: (info_proc_cmd_1): New function.
    	(info_proc_cmd): New function, moved here from equivalent routine
    	orignally in linux-nat.c.
    	(info_proc_cmd_mappings): Likewise.
    	(info_proc_cmd_stat): Likewise.
    	(info_proc_cmd_status): Likewise.
    	(info_proc_cmd_cwd): Likewise.
    	(info_proc_cmd_cmdline): Likewise.
    	(info_proc_cmd_exe): Likewise.
    	(info_proc_cmd_all): Likewise.
    	(_initialize_infcmd): Install "info proc" command and subcommands.
    
    	* target.h (struct target_ops): Add to_info_proc.
    	(target_info_proc): Add prototype.
    	* target.c (target_info_proc): New function.
    
    	* procfs.c (procfs_info_proc): Add prototype.
    	(info_proc_cmd): Rename into ...
    	(procfs_info_proc): ... this.  Update argument types as appropriate
    	for a to_info_proc implementation.  Handle "what" argument.
    	(procfs_target): Install procfs_info_proc.
    	(_initialize_procfs): No longer install "info proc" command.
    
    	* linux-nat.c: (enum info_proc_what): Remove.
    	(linux_nat_info_proc_cmd_1): Rename into ...
    	(linux_nat_info_proc): ... this.  Update argument types as appropriate
    	for a to_info_proc implementation.
    	(linux_nat_info_proc_cmd): Remove.
    	(linux_nat_info_proc_cmd_mappings): Likewise.
    	(linux_nat_info_proc_cmd_stat): Likewise.
    	(linux_nat_info_proc_cmd_status): Likewise.
    	(linux_nat_info_proc_cmd_cwd): Likewise.
    	(linux_nat_info_proc_cmd_cmdline): Likewise.
    	(linux_nat_info_proc_cmd_exe): Likewise.
    	(linux_nat_info_proc_cmd_all): Likewise.
    	(linux_target_install_ops): Install linux_nat_info_proc.
    	(_initialize_linux_nat): No longer install "info proc" command
    	and subcommands.
    
    testsuite/ChangeLog:
    
    	* gdb.base/info-proc.exp: Also run on remote targets.  Main
    	"info proc" command is now always present; whether target supports
    	actual info proc operation is detected when attempting to issue
    	the command.
  13. ChangeLog:

    uweigand authored
    	* configure.ac [AC_CHECK_FUNCS]: Check for readlink.
    	* config.in, configure: Regenerate.
    
    	* target.h (struct target_ops): Add to_fileio_readlink.
    	(target_fileio_readlink): Add prototype.
    	* target.c (target_fileio_readlink): New function.
    
    	* inf-child.c: Conditionally include <sys/param.h>.
    	(inf_child_fileio_readlink): New function.
    	(inf_child_target): Install it.
    
    	* remote.c (PACKET_vFile_readlink): New enum value.
    	(remote_hostio_readlink): New function.
    	(init_remote_ops): Install it.
    	(_initialize_remote): Handle vFile:readlink packet type.
    
    doc/ChangeLog:
    
    	* gdb.texinfo (Remote Configuration): Document
    	"set remote hostio-readlink-packet" command.
    	(General Query Packets): Document vFile:readlink packet.
    
    gdbserver/ChangeLog:
    
    	* hostio.c (handle_readlink): New function.
    	(handle_vFile): Call it to handle "vFile:readlink" packets.
  14. 2012-01-20 Pedro Alves <palves@redhat.com>

    uweigand authored
    	    Ulrich Weigand  <ulrich.weigand@linaro.org>
    
    	* configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
    	* config.in, configure: Regenerate.
    
    	* target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
    	to_fileio_pread, to_fileio_close, to_fileio_unlink.
    	(target_fileio_open): Add prototype.
    	(target_fileio_pwrite): Likewise.
    	(target_fileio_pread): Likewise.
    	(target_fileio_close): Likewise.
    	(target_fileio_unlink): Likewise.
    	(target_fileio_read_alloc): Likewise.
    	(target_fileio_read_stralloc): Likewise.
    
    	* target.c: Include "gdb/fileio.h".
    	(target_read_stralloc): Accept trailing, but not embedded NUL bytes.
    	(default_fileio_target): New function.
    	(target_fileio_open): Likewise.
    	(target_fileio_pwrite): Likewise.
    	(target_fileio_pread): Likewise.
    	(target_fileio_close): Likewise.
    	(target_fileio_unlink): Likewise.
    	(target_fileio_close_cleanup): Likewise.
    	(target_fileio_read_alloc_1): Likewise.
    	(target_fileio_read_alloc): Likewise.
    	(target_fileio_read_stralloc): Likewise.
    
    	* inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
    	<fcntl.h>, and <unistd.h>.
    	(inf_child_fileio_open_flags_to_host): New function.
    	(inf_child_errno_to_fileio_error): Likewise.
    	(inf_child_fileio_open): Likewise.
    	(inf_child_fileio_pwrite): Likewise.
    	(inf_child_fileio_pread): Likewise.
    	(inf_child_fileio_close): Likewise.
    	(inf_child_fileio_unlink): Likewise.
    	(inf_child_target): Install to_fileio routines.
    
    	* remote.c (init_remote_ops): Install to_fileio routines.
  15. 2012-01-20 Pedro Alves <palves@redhat.com>

    uweigand authored
    	    Ulrich Weigand  <ulrich.weigand@linaro.org>
    
    ChangeLog:
    
    	* remote.c (remote_multi_process_p): Only check for multi-process
    	protocol feature, do not check for extended protocol.
    	(remote_supports_multi_process): Check for extended protocol here.
    	(set_general_process): Likewise.
    	(extended_remote_kill): Likewise.
    	(remote_pid_to_str): Likewise.
    	(remote_query_supported): Always query multiprocess mode.
    
    gdbserver/ChangeLog:
    
    	* server.c (handle_v_requests): Only support vAttach and vRun to
    	start multiple processes when in extended protocol mode.
  16. 2012-01-20 Pedro Alves <palves@redhat.com>

    uweigand authored
    	    Ulrich Weigand  <ulrich.weigand@linaro.org>
    
    	* inferior.h (struct inferior): Add fake_pid_p.
    	* inferior.c (exit_inferior_1): Clear fake_pid_p.
    	* remote.c (remote_start_remote): Set fake_pid_p if we have to use
    	magic_null_ptid since the remote side doesn't provide a real PID.
  17. Add typename on types used in template

    hjl authored
    2012-01-22  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* x86_64.cc (gc_process_relocs): Add typename on types used in
    	template.
    	(scan_relocs): Likewise.
    	(relocate_section): Likewise.
    	(apply_relocation): Likewise.
  18. *** empty log message ***

    gdbadmin authored
Commits on Jan 19, 2012
  1. daily update

    amodra authored
  2. * NEWS: Combine the two Python sections.

    tromey authored
  3. gdb/

    jkratoch authored
    	* target.h (target_close): Update comment on the target's unpush state.
  4. 2012-01-19 Pedro Alves <palves@redhat.com>

    palves authored
    	* linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
    	linux_nat_async directly instead of going through the target
    	vector.
    	* target.c (unpush_target): Close target after unpushing it, not
    	before.
  5. 2012-01-19 Tristan Gingold <gingold@adacore.com>

    gingold authored
    	* dwarf.c (process_extended_line_op): Add a cast to silent a
    	warning.
  6. 2012-01-19 Gary Benson <gbenson@redhat.com>

    gary authored
    	* mdebugread.c (sort_blocks): Replace integer constants with ones
    	derived from FIRST_LOCAL_BLOCK.
  7. gdb/testsuite/

    jkratoch authored
    	* .gdbinit: Remove.
  8. 2012-01-19 Pedro Alves <palves@redhat.com>

    palves authored
    	* gdb.java/jprint.exp: Don't rely on inferior output, but instead
    	look at the funtions' returns.
    	* gdb.java/jprint.java (jvclass.addprint, jprint.print(int))
    	(jprint.print(int, int)): Change return type to int.  Adjust.
  9. 2012-01-19 Tristan Gingold <gingold@adacore.com>

    gingold authored
    	* pef.c: Add a comment.
    	* xsym.c: Likewise.
  10. 2012-01-19 Tristan Gingold <gingold@adacore.com>

    gingold authored
    	* dwarf.c (process_extended_line_op): Reindent define_file output.
    	Detect define_file opcode length mismatch.
    	(display_debug_lines_decoded): Add an entry in file_table for each
    	define_file opcode.
    	Ignore DW_LNE_set_discriminator and DW_LNE_HP_set_sequence.
    	Display extended opcode for unhandle opcode.
  11. *** empty log message ***

    gdbadmin authored
Commits on Jan 18, 2012
  1. daily update

    amodra authored
  2. 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>

    ppluzhnikov authored
    	    Jan Kratochvil  <jan.kratochvil@redhat.com>
    
    	PR gdb/9538
    	* symfile.c (find_separate_debug_file): New function.
    	(terminate_after_last_dir_separator): Likewise.
    	(find_separate_debug_file_by_debuglink): Also try realpath.
    	* configure.ac (AC_CHECK_FUNCS): Add lstat.
    	* configure: Regenerate.
    	* config.in: Regenerate.
    
    testsuite/ChangeLog:
    
    2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
    
    	PR gdb/9538
    	* gdb.base/sepdebug.exp: New test.
Something went wrong with that request. Please try again.