X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=e0a3322e257b57bc2f4af9b8d1ad68db9c1369f3;hb=cc6bcb548d67a5a0a7223d81bd43c299312320c8;hp=de9127f70fe1417e9a012756c5da19f298514ebd;hpb=bfd60e344c8001910825a358ad674003738ebb6b;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index de9127f70f..e0a3322e25 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,575 @@ +2018-07-03 Tom Tromey + + * common/ptid.c (ptid_get_tid): Remove. + * common/ptid.h (ptid_get_tid): Don't declare. + * ada-tasks.c: Update. + * aix-thread.c: Update. + * bsd-uthread.c: Update. + * darwin-nat.c: Update. + * fbsd-nat.c: Update. + * i386-darwin-nat.c: Update. + * infrun.c: Update. + * linux-tdep.c: Update. + * nto-procfs.c: Update. + * ppc-ravenscar-thread.c: Update. + * python/py-infthread.c: Update. + * ravenscar-thread.c: Update. + * sol-thread.c: Update. + * sparc-ravenscar-thread.c: Update. + * windows-nat.c: Update. + +2018-07-03 Tom Tromey + + * common/ptid.c (ptid_get_lwp): Remove. + * common/ptid.h (ptid_get_lwp): Don't declare. + * aarch64-linux-nat.c: Update. + * ada-tasks.c: Update. + * aix-thread.c: Update. + * amd64-linux-nat.c: Update. + * arm-linux-nat.c: Update. + * corelow.c: Update. + * fbsd-nat.c: Update. + * fbsd-tdep.c: Update. + * gnu-nat.c: Update. + * i386-cygwin-tdep.c: Update. + * i386-gnu-nat.c: Update. + * i386-linux-nat.c: Update. + * ia64-linux-nat.c: Update. + * inf-ptrace.c: Update. + * infrun.c: Update. + * linux-fork.c: Update. + * linux-nat.c: Update. + * linux-tdep.c: Update. + * linux-thread-db.c: Update. + * mips-linux-nat.c: Update. + * nat/aarch64-linux-hw-point.c: Update. + * nat/aarch64-linux.c: Update. + * nat/linux-btrace.c: Update. + * nat/linux-osdata.c: Update. + * nat/linux-procfs.c: Update. + * nat/x86-linux-dregs.c: Update. + * obsd-nat.c: Update. + * ppc-fbsd-nat.c: Update. + * ppc-linux-nat.c: Update. + * procfs.c: Update. + * python/py-infthread.c: Update. + * ravenscar-thread.c: Update. + * remote.c: Update. + * s390-linux-nat.c: Update. + * sol-thread.c: Update. + * sol2-tdep.c: Update. + * spu-linux-nat.c: Update. + * x86-linux-nat.c: Update. + * xtensa-linux-nat.c: Update. + +2018-07-03 Tom Tromey + + * common/ptid.c (ptid_get_pid): Remove. + * common/ptid.h (ptid_get_pid): Don't declare. + * aarch64-linux-nat.c: Update. + * ada-lang.c: Update. + * aix-thread.c: Update. + * alpha-bsd-nat.c: Update. + * amd64-fbsd-nat.c: Update. + * amd64-linux-nat.c: Update. + * arm-linux-nat.c: Update. + * arm-nbsd-nat.c: Update. + * auxv.c: Update. + * break-catch-syscall.c: Update. + * breakpoint.c: Update. + * bsd-uthread.c: Update. + * corelow.c: Update. + * ctf.c: Update. + * darwin-nat.c: Update. + * fbsd-nat.c: Update. + * fbsd-tdep.c: Update. + * gcore.c: Update. + * gnu-nat.c: Update. + * hppa-nbsd-nat.c: Update. + * hppa-obsd-nat.c: Update. + * i386-fbsd-nat.c: Update. + * ia64-linux-nat.c: Update. + * inf-ptrace.c: Update. + * infcmd.c: Update. + * inferior.c: Update. + * inferior.h: Update. + * inflow.c: Update. + * infrun.c: Update. + * linux-fork.c: Update. + * linux-nat.c: Update. + * linux-tdep.c: Update. + * linux-thread-db.c: Update. + * m68k-bsd-nat.c: Update. + * mi/mi-interp.c: Update. + * mi/mi-main.c: Update. + * mips-linux-nat.c: Update. + * mips-nbsd-nat.c: Update. + * mips64-obsd-nat.c: Update. + * nat/aarch64-linux-hw-point.c: Update. + * nat/aarch64-linux.c: Update. + * nat/linux-btrace.c: Update. + * nat/linux-osdata.c: Update. + * nat/linux-procfs.c: Update. + * nat/x86-linux-dregs.c: Update. + * nto-procfs.c: Update. + * obsd-nat.c: Update. + * ppc-linux-nat.c: Update. + * ppc-nbsd-nat.c: Update. + * ppc-obsd-nat.c: Update. + * proc-service.c: Update. + * procfs.c: Update. + * python/py-inferior.c: Update. + * python/py-infthread.c: Update. + * ravenscar-thread.c: Update. + * record.c: Update. + * remote-sim.c: Update. + * remote.c: Update. + * rs6000-nat.c: Update. + * s390-linux-nat.c: Update. + * sh-nbsd-nat.c: Update. + * sol-thread.c: Update. + * sparc-nat.c: Update. + * sparc64-tdep.c: Update. + * spu-linux-nat.c: Update. + * spu-tdep.c: Update. + * target-debug.h: Update. + * target.c: Update. + * thread.c: Update. + * tid-parse.c: Update. + * tracefile-tfile.c: Update. + * vax-bsd-nat.c: Update. + * windows-nat.c: Update. + * x86-linux-nat.c: Update. + * x86-nat.c: Update. + +2018-07-03 Tom Tromey + + * common/ptid.c (pid_to_ptid): Remove. + * common/ptid.h (pid_to_ptid): Don't declare. + * aix-thread.c: Update. + * arm-linux-nat.c: Update. + * common/ptid.c: Update. + * common/ptid.h: Update. + * corelow.c: Update. + * ctf.c: Update. + * darwin-nat.c: Update. + * fbsd-nat.c: Update. + * fork-child.c: Update. + * gnu-nat.c: Update. + * go32-nat.c: Update. + * inf-ptrace.c: Update. + * infcmd.c: Update. + * inferior.c: Update. + * infrun.c: Update. + * linux-fork.c: Update. + * linux-nat.c: Update. + * nat/aarch64-linux-hw-point.c: Update. + * nat/fork-inferior.c: Update. + * nat/x86-linux-dregs.c: Update. + * nto-procfs.c: Update. + * obsd-nat.c: Update. + * procfs.c: Update. + * progspace.c: Update. + * remote.c: Update. + * rs6000-nat.c: Update. + * s390-linux-nat.c: Update. + * sol-thread.c: Update. + * spu-linux-nat.c: Update. + * target.c: Update. + * top.c: Update. + * tracefile-tfile.c: Update. + * windows-nat.c: Update. + +2018-07-03 Tom Tromey + + * common/ptid.h (ptid_build): Don't declare. + * common/ptid.c (ptid_build): Remove. + * aix-thread.c: Update. + * bsd-kvm.c: Update. + * bsd-uthread.c: Update. + * common/agent.c: Update. + * common/ptid.c: Update. + * common/ptid.h: Update. + * corelow.c: Update. + * darwin-nat.c: Update. + * fbsd-nat.c: Update. + * gnu-nat.c: Update. + * linux-fork.c: Update. + * linux-nat.c: Update. + * linux-thread-db.c: Update. + * nat/linux-osdata.c: Update. + * nat/linux-procfs.c: Update. + * nto-procfs.c: Update. + * obsd-nat.c: Update. + * proc-service.c: Update. + * procfs.c: Update. + * ravenscar-thread.c: Update. + * remote-sim.c: Update. + * remote.c: Update. + * sol-thread.c: Update. + * target.c: Update. + * windows-nat.c: Update. + +2018-07-03 Tom Tromey + + * infrun.c (follow_exec): Use exit_inferior_silent. + * inferior.c (exit_inferior_num_silent): Remove. + * inferior.h (exit_inferior_num_silent): Don't declare. + +2018-07-03 Tom Tromey + + PR cli/23340: + * darwin-nat.c (darwin_attach_pid): Reset inferior and + inferior_ptid on error. + +2018-07-02 Maciej W. Rozycki + Simon Marchi + + PR tdep/8282 + * disasm.h (gdb_disassembler): Add + `m_disassembler_options_holder'. member + * disasm.c (get_all_disassembler_options): New function. + (gdb_disassembler::gdb_disassembler): Use it. + (gdb_buffered_insn_length_init_dis): Likewise. + (gdb_buffered_insn_length): Adjust accordingly. + (set_disassembler_options): Handle options with arguments. + (show_disassembler_options_sfunc): Likewise. Add a leading new + line if showing options with descriptions. + (disassembler_options_completer): Adapt to using the + `disasm_options_and_args_t' structure. + * mips-tdep.c (mips_disassembler_options): New variable. + (mips_disassembler_options_o32): Likewise. + (mips_disassembler_options_n32): Likewise. + (mips_disassembler_options_n64): Likewise. + (gdb_print_insn_mips): Don't set `disassembler_options'. + (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove + functions. + (mips_gdbarch_init): Always set `gdbarch_print_insn' to + `gdb_print_insn_mips'. Set `gdbarch_disassembler_options', + `gdbarch_disassembler_options_implicit' and + `gdbarch_valid_disassembler_options'. + * arm-tdep.c (_initialize_arm_tdep): Adapt to using the + `disasm_options_and_args_t' structure. + * gdbarch.sh (disassembler_options_implicit): New `gdbarch' + method. + (valid_disassembler_options): Switch from `disasm_options_t' to + the `disasm_options_and_args_t' structure. + * NEWS: Document `set disassembler-options' support for the MIPS + target. + * gdbarch.h: Regenerate. + * gdbarch.c: Regenerate. + +2018-07-02 Sebastian Huber + + * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries. + +2018-06-29 Joel Brobecker + + * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing + parameter in call to amd64_target_description. + * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise. + * amd64-fbsd-tdep.c (amd64fbsd_core_read_description) + (amd64fbsd_init_abi): Likewise. + * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. + * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. + * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. + * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise. + +2018-06-29 Pedro Alves + + * gdb/amd64-tdep.h (amd64_create_target_description): Add + "segments" parameter. + * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi) + (_initialize_amd64_tdep): Update call to + amd64_create_target_description. + (amd64_target_description): Add "segments" parameter. Adjust + the implementation to use it. + * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update + call to amd64_create_target_description. + * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise. + * gdb/arch/amd64.h (amd64_create_target_description): Add + "segments" register. + * gdb/arch/amd64.c (amd64_create_target_description): Add + "segments" parameter. Call create_feature_i386_64bit_segments + only if SEGMENTS is true. + * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update + call to amd64_create_target_description. + +2018-06-29 Pedro Alves + + * thread.c (thread_target_id_str): New, factored out from ... + (print_thread_info_1): ... here. Use it to compute the max + "Target Id" column width. + +2018-06-29 Pedro Alves + + * remote.c (remote_target::extra_thread_info): Delete + 'display_buf' and 'n' locals. from the cache, regardless of + packet mechanims is in use. Use cache for qThreadExtra and qP + methods too. + +2018-06-29 Pedro Alves + + * blockframe.c (find_pc_sect_containing_function): New function. + * breakpoint.c (print_breakpoint_location): Don't call + find_pc_sect_function. + * linespec.c (create_sals_line_offset): Record the location's + symbol in the sal. + * linespec.c (convert_address_location_to_sals): Fill in sal's + symbol with find_pc_sect_containing_function. + * symtab.c (find_function_start_sal): Rename to ... + (find_function_start_sal_1): ... this. + (find_function_start_sal): Reimplement as wrapper around + find_function_start_sal_1, and use + find_pc_sect_containing_function to fill in the sal's symbol. + (find_function_start_sal(symbol*, bool)): Adjust. + * symtab.h (find_pc_function, find_pc_sect_function): Adjust + comments. + (find_pc_sect_containing_function): Declare. + +2018-06-29 Pedro Alves + + * inline-frame.c (stopped_by_user_bp_inline_frame): Return + true if the the location has no symbol. + +2018-06-28 Tom Tromey + + * NEWS: Mention --enable-codesign. + * silent-rules.mk (ECHO_SIGN): New variable. + * configure.ac: Add --enable-codesign. + * configure: Rebuild. + * Makefile.in (CODESIGN, CODESIGN_CERT): New variables. + (gdb$(EXEEXT)): Optionally invoke codesign. + +2018-06-28 Pedro Alves + + * gdbthread.h (struct thread_suspend_state) : Extend + comments. + (switch_to_thread_no_regs): Adjust comment. + * infcmd.c (stop_pc): Delete. + (post_create_inferior, info_program_command): Replace references + to stop_pc with references to thread_info->suspend.stop_pc. + * inferior.h (stop_pc): Delete declaration. + * infrun.c (proceed, handle_syscall_event, fill_in_stop_func) + (handle_inferior_event_1, handle_signal_stop) + (process_event_stop_test, keep_going_stepped_thread) + (handle_step_into_function, handle_step_into_function_backward) + (print_stop_location): Replace references to stop_pc with + references to thread_info->suspend.stop_pc. + (struct infcall_suspend_state) : Delete field. + (save_infcall_suspend_state, restore_infcall_suspend_state): + Remove references to inf_stat->stop_pc. + * linux-fork.c (fork_load_infrun_state): Likewise. + * record-btrace.c (record_btrace_set_replay): Likewise. + * record-full.c (record_full_goto_entry): Likewise. + * remote.c (print_one_stopped_thread): Likewise. + * target.c (target_resume): Extend comment. + * thread.c (set_executing_thread): New. + (set_executing): Use it. + (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread): + Remove references to stop_pc. + +2018-06-28 Pedro Alves + + * infrun.c (handle_inferior_event_1) : + Moving fetching stop_pc until after ecs->event_thread is refreshed. + +2018-06-28 Tom Tromey + + * coffread.c (coff_symfile_finish): Update. + * xcoffread.c (xcoff_symfile_finish): Update. + * elfread.c (elf_symfile_finish): Update. + * symfile.h (dwarf2_free_objfile): Don't declare. + * dwarf2read.c (_initialize_dwarf2_read): Use + register_objfile_data_with_cleanup. + (dwarf2_free_objfile): Now static. Change signature. + +2018-06-28 Petr Tesarik + + * symfile.c (add_symbol_file_command, _initialize_symfile): Add + option "-o" to add-symbol-file-load to add an offset to each + section's load address. + * symfile.c (set_objfile_default_section_offset): New function. + +2018-06-28 Petr Tesarik + + * symfile.c (add_symbol_file_command): Make sure that sections + with the same name are sorted in the same order. + +2018-06-28 Petr Tesarik + + * symfile.c (add_symbol_file_command, _initialize_symfile): Do not + require the second argument. If omitted, load sections at the + addresses specified in the file. + +2018-06-28 Petr Tesarik + + * symfile.c (symbol_file_command, symbol_file_add_main_1) + (_initialize_symfile): Add option "-o" to symbol-file to add an + offset to each section of the symbol file. + +2018-06-28 Petr Tesarik + + * MAINTAINERS (Write After Approval): Add Petr Tesarik. + +2018-06-27 Tom Tromey + + * stack.c (_initialize_stack): Update "func" help text. + +2018-06-27 Tom Tromey + + * python/py-unwind.c (unwind_info_object) : Now a + std::vector. + (unwind_infopy_str, pyuw_create_unwind_info) + (unwind_infopy_add_saved_register, pyuw_sniffer) + (unwind_infopy_dealloc, unwind_infopy_add_saved_register): + Update. + (struct saved_reg): Add constructor. + : Now a gdbpy_ref<>. + +2018-06-27 Tom Tromey + + * machoread.c (macho_symfile_read): Define "symbol_table" earlier. + +2018-06-27 Simon Marchi + + * gdb-gdb.py.in: Format using autopep8. + +2018-06-27 Simon Marchi + + * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class. + (type_lookup_function): Recognize CORE_ADDR values. + +2018-06-27 Simon Marchi + + * gdb-gdb.py.in (StructMainTypePrettyPrinter) : Don't + print tag_name. + +2018-06-27 Simon Marchi + + * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove. + <__lt__>: Add. + +2018-06-27 Simon Marchi + + * gdb-gdb.py: Move to... + * gdb-gdb.py.in: ... here. + * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py. + * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as + dependencies. + (distclean): Remove gdb-gdb.py when cleaning. + (gdb-gdb.py, gdb-gdb.gdb): New rules. + * configure: Re-generate. + +2018-06-27 Pedro Alves + + * proc-service.c (get_ps_regcache): New. + (ps_lgetregs, ps_lsetregs, ps_lgetfpregs) + (ps_lsetfpregs): Use it. + +2018-06-27 Omair Javaid + + PR gdb/21695 + * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration. + (dwarf_decode_lines_1): Adjust. + +2018-06-27 Simon Marchi + + * fbsd-nat.h (class fbsd_nat_target) : Add + override. + : Likewise. + +2018-06-26 Joel Brobecker + + * windows-nat.c (do_windows_fetch_inferior_registers): Rename + to windows_fetch_one_register, and only handle the case of + fetching one register. Move the code that reloads the context + and iterates over all registers if R is negative to... + (windows_nat_target::fetch_registers): ... here. + (do_windows_store_inferior_registers): Rename to + windows_store_one_register, and only handle the case of storing + one register. Move the code that handles the case where r is + negative to... + (windows_nat_target::store_registers) ... here. + +2018-06-26 Tom Tromey + + PR rust/22574: + * typeprint.c (whatis_exp): Allow ptype/o for Rust. + * rust-lang.c (rust_print_struct_def): Add podata parameter. + Update. + (rust_internal_print_type): Add podata parameter. + (rust_print_type): Update. + +2018-06-26 Tom Tromey + + * typeprint.h (struct print_offset_data) : New methods. + : New constant. + * typeprint.c (print_offset_data::indentation): Define. + (print_offset_data::maybe_print_hole, print_offset_data::update) + (print_offset_data::finish): Move from c-typeprint.c and rename. + * c-typeprint.c (OFFSET_SPC_LEN): Remove. + (print_spaces_filtered_with_print_options): Update. + (c_print_type_union_field_offset, maybe_print_hole) + (c_print_type_struct_field_offset): Move to typeprint.c and + rename. + (c_type_print_base_struct_union): Update. + +2018-06-25 Pedro Alves + + * gdbthread.h (thread_info_ref, delete_thread) + (delete_thread_silent, first_thread_of_inferior) + (any_thread_of_inferior, switch_to_thread) + (enable_thread_stack_temporaries) + (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) + (get_last_thread_stack_temporary) + (value_in_thread_stack_temporaries, can_access_registers_thread): + Spell out "struct thread_info" instead of just "thread_info". + * inferior.h (notice_new_inferior): Likewise. + +2018-06-25 Pedro Alves + + * windows-nat.c (windows_delete_thread): Use find_thread_ptid and + pass thread_info pointer to delete_thread. + (windows_nat_target::detach): Pass inferior pointer to + detach_inferior. + * aix-thread.c (sync_threadlists): Pass thread_info pointer to + delete_thread. + * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors. + * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid + and pass a thread_info pointer to delete_thread. + * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and + pass thread_info pointer to delete_thread. + * go32-nat.c (go32_nat_target::mourn_inferior): Remove + delete_thread_silent call. + * procfs.c (procfs_target::detach): Pass inferior pointer to + detach_inferior. + (procfs_target::wait): Pass thread_info pointer to delete_thread. + * remote-sim.c (gdbsim_target::mourn_inferior): Remove + delete_thread_silent call. + * windows-nat.c (windows_delete_thread): Use find_thread_ptid and + pass thread_info pointer to delete_thread. + (windows_nat_target::detach): Pass inferior pointer to + delete_inferior. + +2018-06-22 Alan Hayward + + * regcache.c (readable_regcache::read_part): Fix asserts. + (reg_buffer::raw_collect_part): New function. + (regcache::write_part): Fix asserts. + (reg_buffer::raw_supply_part): New function. + (regcache::transfer_regset_register): New helper function. + (regcache::transfer_regset): Call new functions. + (regcache_supply_regset): Use gdb_byte*. + (regcache::supply_regset): Likewise. + (regcache_collect_regset): Likewise. + (regcache::collect_regset): Likewise. + * regcache.h (reg_buffer::raw_collect_part): New declaration. + (reg_buffer::raw_supply_part): Likewise. + (regcache::transfer_regset_register): Likewise. + (regcache::transfer_regset): Use gdb_byte*. + 2018-06-22 Alan Hayward * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.