X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=a52624b4538099fa14fbaeacd2f99a97fbb1e130;hb=32fad71f9e6cdf73fe3c10123b23f42397b83e7d;hp=c9f527c7270b707ff697119c783b2033c9258589;hpb=5d9c55d355c8e5c688caa3fe43c0d95d538daf35;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c9f527c727..a52624b453 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,511 @@ +2015-06-24 Keith Seitz + + * build-id.c (build_id_to_debug_bfd): Add cleanup to free + return value from lrealpath. + +2015-06-24 Mike Frysinger + + * remote-sim.c (gdbsim_open): Move sysroot update to the top. + +2015-06-24 Mike Frysinger + + * remote-sim.c: Include gdb_bfd.h. + (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot. + Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active. + +2015-06-24 Yao Qi + + * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call + set_gdbarch_get_siginfo_type. + * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise. + * arm-linux-tdep.c (arm_linux_init_abi): Likewise. + * i386-linux-tdep.c (i386_linux_init_abi): Likewise. + * m68klinux-tdep.c (m68k_linux_init_abi): Likewise. + * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise. + * s390-linux-tdep.c (s390_gdbarch_init): Likewise. + * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise. + * linux-tdep.c (linux_get_siginfo_type): Change it to static. + (linux_init_abi): Call set_gdbarch_get_siginfo_type. + * linux-tdep.h (linux_get_siginfo_type): Remove the declaration. + +2015-06-24 Gary Benson + + * common/buffer.c (stdint.h): Do not include. + * common/print-utils.c (stdint.h): Likewise. + * compile/compile-c-symbols.c (gdb_assert.h): Likewise. + * compile/compile-c-types.c (gdb_assert.h): Likewise. + * ft32-tdep.c (gdb_assert.h): Likewise. + * guile/scm-utils.c (stdint.h): Likewise. + * i386-linux-tdep.c (stdint.h): Likewise. + * i386-tdep.c (stdint.h): Likewise. + * nat/linux-btrace.c (stdint.h): Likewise. + * nat/linux-btrace.h (stdint.h): Likewise. + * nat/linux-ptrace.c (stdint.h): Likewise. + * nat/mips-linux-watch.h (stdint.h): Likewise. + * ppc-linux-nat.c (stdint.h): Likewise. + * python/python-internal.h (stdint.h): Likewise. + * stub-termcap.c (stdlib.h): Likewise. + * target/target.h (stdint.h): Likewise. + * xtensa-linux-nat.c (stdint.h): Likewise. + +2015-06-23 Patrick Palka + + * top.c (init_history): Look at errno after calling strtol to + properly map large GDBHISTSIZE values to infinity. + +2015-06-23 Doug Evans + + * inferior.h (struct inferior_suspend_state): Delete, unused. + All references deleted. + +2015-06-23 Mike Frysinger + + * microblaze-tdep.c (microblaze_push_dummy_code): Delete. + (microblaze_push_dummy_call): Likewise. + (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code + and set_gdbarch_push_dummy_call. + +2015-06-23 Yao Qi + + * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): + Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly. + (amd64_linux_store_inferior_registers): Likewise. + * arm-linux-nat.c (fetch_fpregister): Likewise. + (fetch_fpregs, store_fpregister): Likewise. + (store_fpregister, store_fpregs): Likewise. + (fetch_register, fetch_regs): Likewise. + (store_register, store_regs): Likewise. + (fetch_vfp_regs, store_vfp_regs): Likewise. + (arm_linux_read_description): Check have_ptrace_getregset is + TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE + or TRIBOOL_FALSE. + * i386-linux-nat.c (fetch_xstateregs): Check + have_ptrace_getregset is not TRIBOOL_TRUE. + (store_xstateregs): Likewise. + * linux-nat.c (have_ptrace_getregset): Change its type to + enum tribool. + * linux-nat.h (tribool): New enum. + * x86-linux-nat.c (x86_linux_read_description): Use enum tribool. + Check whether have_ptrace_getregset is TRIBOOL_TRUE. + +2015-06-19 Doug Evans + + * NEWS: Mention Sun's version of stabs is no longer supported. + * elfread.c (free_elfinfo): Delete. All uses updated. + (elfstab_offset_sections): Delete. All uses updated. + * gdb-stabs.h (stab_section_info): Delete. All uses updated. + * psympriv.h (partial_symtab) : Delete. + All uses updated. + * psymtab.c (start_psymtab_common): Delete arg section_offsets. + All callers updated. + +2015-06-18 Simon Marchi + + * common/rsp-low.c (needs_escaping): New. + (remote_escape_output): Add unit_size parameter. Refactor to + support multi-byte addressable units. Rename parameters. + * common/rsp-low.h (remote_escape_output): Add unit_size + parameter and rename others. Update doc. + * remote.c (align_for_efficient_write): New. + (remote_write_bytes_aux): Add unit_size parameter and use it. + Rename some variables. Update doc. + (remote_xfer_partial): Get unit size and use it. + (remote_read_bytes_1): Add unit_size parameter and use it. + Rename some variables. Update doc. + (remote_write_bytes): Same. + (remote_xfer_live_readonly_partial): Same. + (remote_read_bytes): Same. + (remote_flash_write): Update call to remote_write_bytes_aux. + (remote_write_qxfer): Update call to remote_escape_output. + (remote_search_memory): Same. + (remote_hostio_pwrite): Same. + +2015-06-17 Luis Machado + + * breakpoint.c (add_location_to_breakpoint): Don't mark permanent + locations as inserted. + Update and expand comment about permanent locations. + (bp_loc_is_permanent): Don't return 0 for bp_call_dummy. + Move comment to add_location_to_breakpoint. + (update_global_location_list): Don't error out if a permanent + breakpoint is not marked inserted. + Don't error out if a non-permanent breakpoint location is inserted on + top of a permanent breakpoint. + +2015-06-17 Luis Machado + + * breakpoint.c (make_breakpoint_permanent): Remove unused + function. + * breakpoint.h (make_breakpoint_permanent): Remove declaration. + +2015-06-17 Patrick Palka + + PR gdb/16999 + * NEWS: Mention new GDBHISTSIZE behavior. + * top.c (init_history): For null or out-of-range GDBHISTSIZE, + set history size to unlimited. Ignore non-numeric GDBHISTSIZE. + +2015-06-17 Patrick Palka + + * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE. + * top.c (init_history): Read from GDBHISTSIZE instead of + HISTSIZE. + (init_main): Refer to GDBHISTSIZE instead of HISTSIZE. + +2015-06-17 Patrick Palka + + * top.c (gdb_safe_append_history): Do not call + history_truncate_file if the history is not stifled. + +2015-06-17 Andreas Arnez + + * syscalls/s390-linux.xml: Add syscalls 344 through 354. + * syscalls/s390x-linux.xml: Likewise. + +2015-06-16 Michael Eager + + * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined. + +2015-06-16 Patrick Palka + + * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call + target_terminal_ours_for_output() before calling + tui_show_frame_info(), and restore the original terminal + settings afterwards. + +2015-06-16 Martin Simmons (tiny patch) + + * arm-linux-nat.c: Include nat/linux-ptrace.h. + +2015-06-15 Simon Marchi + + * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable + memory unit size. + (mi_cmd_data_write_memory_bytes): Same. + +2015-06-15 Simon Marchi + + * corefile.c (write_memory): Update doc. + * gdbcore.h (write_memory): Same. + +2015-06-15 Jan Kratochvil + + * linux-tdep.c (enum filterflags): Make it from anonymous enum. + (dump_mapping_p): Use it for parameter filterflags. + (linux_find_memory_regions_full): Use it for variable filterflags. + +2015-06-15 Aleksandar Ristovski + + Merge multiple hex conversions. + * monitor.c: Include rsp-low.h. + (fromhex): Remove definition. + +2015-06-15 Aleksandar Ristovski + + Move utility functions to common/. + * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const): + Move defs to common/common-utils.c. + * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space) + (skip_to_space_const): Move decls to common/common-utils.h. + * common/common-defs.h: Move include of common-types.h before + common-utils.h. + * common/common-utils.c: Include host-defs.h and ctype.h. + (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move + from utils.c. + (skip_spaces, skip_spaces_const, skip_to_space_const): Move from + cli/cli-utils.c. + * common/common-utils.h (strtoulst): Move decl from utils.h. + (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const): + Move from cli/cli-utils.h. + * common/host-defs.h: Include limits.h. + (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h. + (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h. + * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to + common/common-utils.h. + * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int) + (strtoulst): Move to common/common-utils.c. + * utils.h (strtoulst): Moved decl to common/common-utils.h. + +2015-06-15 Yao Qi + + * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml. + +2015-06-10 Jon Turney + + * build-id.c: Don't include elf-bfd.h. + (build_id_bfd_get): Use bfd_build_id. + (build_id_verify): Ditto. + * build-id.h: Ditto. + (find_separate_debug_file_by_buildid): Ditto. + * python/py-objfile.c: Don't include elf-bfd.h. + (objfpy_get_build_id) Use bfd_build_id. + (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto. + * coffread.c: Include build-id.h. + (coff_symfile_read): Try find_separate_debug_file_by_buildid. + +2015-06-03 Jon Turney + + * windows-nat.c (do_windows_fetch_inferior_registers) + (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE + conditional with __CYGWIN__. + +2015-06-13 Andrew Burgess + + * completer.c: Add arch-utils.h include. + (enum reg_completer_targets): New enum. + (reg_or_group_completer_1): New function containing old + reg_or_group_completer, add and use new parameter to control what + is completed on. Use get_current_arch rather than architecture of + currently selected frame. + (reg_or_group_completer): Call new reg_or_group_completer_1. + (reggroup_completer): Call new reg_or_group_completer_1. + * completer.h (reggroup_completer): Add declaration. + * tui/tui-regs.c: Add 'completer.h' include. + (tui_reg_next_command): Renamed to... + (tui_reg_next): ...this. Adjust parameters and return rather than + display new group. + (tui_reg_prev_command): Renamed to... + (tui_reg_prev): ...this. Adjust parameters and return rather than + display new group. + (tui_reg_float_command): Delete. + (tui_reg_general_command): Delete. + (tui_reg_system_command): Delete. + (tui_reg_command): Rewrite to perform switching of register group. + Add header comment. + (tuireglist): Remove. + (tui_reggroup_completer): New function. + (_initialize_tui_regs): Remove 'tui reg' sub-commands, update + creation of 'tui reg' command. + * NEWS: Add comment about 'tui reg' changes. + +2015-06-12 Simon Marchi + + * target.c (target_read): Consider addressable unit size when + reading from a memory object. + (read_memory_robust): Same. + (read_whatever_is_readable): Same. + (target_write_with_progress): Consider addressable unit size + when writing to a memory object. + * target.h (target_read): Update documentation. + (target_write): Add documentation. + +2015-06-12 Simon Marchi + + * arch-utils.h (default_addressable_memory_unit_size): New. + * arch-utils.c (default_addressable_memory_unit_size): New. + * gdbarch.sh (addressable_memory_unit_size): New. + * gdbarch.h: Re-generate. + * gdbarch.c: Re-generate. + +2015-06-12 Simon Marchi + + * target.c (target_read): Rename variables and use + TARGET_XFER_E_IO. + (target_read_with_progress): Same. + (read_memory_robust): Constify parameters and rename + variables. + (read_whatever_is_readable): Constify parameters, + rename variables, adjust formatting. + * target.h (read_memory_robust): Constify parameters. + +2015-06-12 Ulrich Weigand + + * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short + synthetic (non-AltiVec) vector types. + (ppc64_sysv_abi_return_value): Likewise. + +2015-06-12 Antoine Tremblay + + PR breakpoints/16465 + * breakpoint.c (create_breakpoint): Save extra_string for + pending breakpoints. + +2015-06-10 Walfred Tedeschi + + * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask + and bt_mask to CORE_ADDR. + +2015-06-11 Gary Benson + + * nat/linux-namespaces.c (mnsh_send_message): Use pulongest. + (mnsh_recv_message): Likewise. + +2015-06-11 Walfred Tedeschi + + * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of + long long int and plongest instead of %ll. + +2015-06-11 Gary Benson + + * nat/linux-namespaces.c (gdb_wait.h): New include. + (sys/wait.h): Do not include. + +2015-06-10 Simon Marchi + + * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if + end_sequence is true. + +2015-06-10 Jan Kratochvil + + Code cleanup. + * solib-target.c (library_list_start_list): Use explicit NULL + comparison. + +2015-06-10 Jan Kratochvil + + * solib-target.c (library_list_start_list): Do not dereference + variable version in its initialization. Make the VERSION check handle + NULL. + (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL. + +2015-06-10 Gary Benson + + * NEWS: Announce support for direct access of executable and + shared library files when attaching to inferiors in containers + on GNU/Linux systems. + +2015-06-10 Gary Benson + + * remote.c (struct remote_state) : New field. + (new_remote_state): Initialize the above. + (PACKET_vFile_setfs): New enum value. + (remote_hostio_set_filesystem): New function. + (remote_hostio_open): Call the above. + (remote_hostio_unlink): Likewise. + (remote_hostio_readlink): Likewise. + (_initialize_remote): Register new "set/show remote + hostio-setfs-packet" command. + * NEWS: Announce new vFile:setfs packet. + +2015-06-10 Gary Benson + + * linux-nat.c (nat/linux-namespaces.h): New include. + (fileio.h): Likewise. + (linux_nat_filesystem_is_local): New function. + (linux_nat_fileio_pid_of): Likewise. + (linux_nat_fileio_open): Likewise. + (linux_nat_fileio_readlink): Likewise. + (linux_nat_fileio_unlink): Likewise. + (linux_nat_add_target): Initialize to_filesystem_is_local, + to_fileio_open, to_fileio_readlink and to_fileio_unlink. + (_initialize_linux_nat): New "set/show debug linux-namespaces" + commands. + * NEWS: Mention new "set/show debug linux-namespaces" commands. + +2015-06-10 Gary Benson + + * target.h (struct inferior): New forward declaration. + (struct target_ops) : Update comment. + (struct target_ops) : New argument inf. + Update comment. All implementations updated. + (struct target_ops) : Likewise. + (struct target_ops) : Likewise. + (target_filesystem_is_local): Update comment. + (target_fileio_open): New argument inf. Update comment. + (target_fileio_unlink): Likewise. + (target_fileio_readlink): Likewise. + (target_fileio_read_alloc): Likewise. + (target_fileio_read_stralloc): Likewise. + * target.c (target_fileio_open): New argument inf. + Pass inf to implementation. Update debug printing. + (target_fileio_unlink): Likewise. + (target_fileio_readlink): Likewise. + (target_fileio_read_alloc_1): New argument inf. Pass inf + to target_fileio_open. + (target_fileio_read_alloc): New argument inf. Pass inf to + target_fileio_read_alloc_1. + (target_fileio_read_stralloc): Likewise. + * gdb_bfd.c (inferior.h): New include. + (gdb_bfd_iovec_fileio_open): Replace unused "open_closure" + argument with new argument "inferior". Pass inferior to + target_fileio_open. + (gdb_bfd_open): Supply inferior argument to + gdb_bfd_iovec_fileio_open. + * linux-tdep.c (linux_info_proc): Supply inf argument to + relevant target_fileio calls. + (linux_find_memory_regions_full): Likewise. + (linux_fill_prpsinfo): Likewise. + * remote.c (remote_filesystem_is_local): Supply inf + argument to remote_hostio_open. + (remote_file_put): Likewise. + (remote_file_get): Likewise. + (remote_file_delete): Supply inf argument to + remote_hostio_unlink. + +2015-06-10 Gary Benson + + * inf-child.c (inf_child_fileio_open): Replace comment. + (inf_child_fileio_pwrite): Likewise. + (inf_child_fileio_pread): Likewise. + (inf_child_fileio_fstat): Insert blank line before comment. + (inf_child_fileio_close): Replace comment. + (inf_child_fileio_unlink): Likewise. + (inf_child_fileio_readlink): Likewise. + * remote.c (remote_hostio_open): Likewise. + (remote_hostio_pread): Likewise. + (remote_hostio_pwrite): Likewise. + (remote_hostio_close): Likewise. + (remote_hostio_unlink): Likewise. + (remote_hostio_readlink): Likewise. + (remote_hostio_fstat): Likewise. + (remote_filesystem_is_local): Likewise. + * target.c (target_fileio_open): Likewise. + (target_fileio_pwrite): Likewise. + (target_fileio_pread): Likewise. + (target_fileio_fstat): Insert blank line before comment. + (target_fileio_close): Replace comment. + (target_fileio_unlink): Likewise. + (target_fileio_readlink): Likewise. + (target_fileio_read_alloc): Likewise. + (target_fileio_read_stralloc): Likewise. + +2015-06-10 Gary Benson + + * linux-thread-db.c (nat/linux-namespaces.h): New include. + (check_pid_namespace_match): Use linux_ns_same rather than + linux_proc_pid_get_ns to spot PID namespace mismatches. + * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove. + * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise. + +2015-06-10 Gary Benson + + * configure.ac (AC_CHECK_FUNCS): Add setns. + * config.in: Regenerate. + * configure: Likewise. + * nat/linux-namespaces.h: New file. + * nat/linux-namespaces.c: Likewise. + * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h. + (linux-namespaces.o): New rule. + * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o. + * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise. + * config/arm/linux.mh (NATDEPFILES): Likewise. + * config/i386/linux.mh (NATDEPFILES): Likewise. + * config/i386/linux64.mh (NATDEPFILES): Likewise. + * config/ia64/linux.mh (NATDEPFILES): Likewise. + * config/m32r/linux.mh (NATDEPFILES): Likewise. + * config/m68k/linux.mh (NATDEPFILES): Likewise. + * config/mips/linux.mh (NATDEPFILES): Likewise. + * config/pa/linux.mh (NATDEPFILES): Likewise. + * config/powerpc/linux.mh (NATDEPFILES): Likewise. + * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise. + * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise. + * config/s390/linux.mh (NATDEPFILES): Likewise. + * config/sparc/linux.mh (NATDEPFILES): Likewise. + * config/sparc/linux64.mh (NATDEPFILES): Likewise. + * config/tilegx/linux.mh (NATDEPFILES): Likewise. + * config/xtensa/linux.mh (NATDEPFILES): Likewise. + +2015-06-10 Gary Benson + + * utils.h (make_cleanup_close): Moved to common/filestuff.h. + * utils.c (do_close_cleanup): Moved to common/filestuff.c. + (make_cleanup_close): Likewise. + * common/filestuff.h (make_cleanup_close): Moved from utils.h. + * common/filestuff.c (do_close_cleanup): Moved from utils.c. + (make_cleanup_close): Likewise. + 2015-06-03 Jon Turney * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE