Make linux_nat_detach/thread_db_detach use the inferior parameter
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index f8457054987103cef9724cc15174c100c9988d4a..5467e89c60436c9e99dad0e3b4f533944fc1b857 100644 (file)
@@ -1,3 +1,284 @@
+2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * inf-ptrace.c (inf_ptrace_detach): Adjust call to
+       inf_ptrace_detach_success.
+       (inf_ptrace_detach_success): Add inferior parameter, use it
+       instead of inferior_ptid, pass it to detach_inferior.
+       * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
+       parameter.
+       * inferior.c (detach_inferior): Add overload that takes an
+       inferior object.
+       * inferior.h (detach_inferior): Likewise.
+       * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
+       use inferior_ptid, adjust call to inf_ptrace_detach_success.
+       * linux-thread-db.c (thread_db_detach): Use inf parameter.
+
+2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * target.h (struct target_ops) <to_detach>: Add inferior
+       parameter.
+       (target_detach): Likewise.
+       * target.c (dispose_inferior): Pass inferior down.
+       (target_detach): Pass inferior down.  Assert that it is equal to
+       the current inferior.
+       * aix-thread.c (aix_thread_detach): Pass inferior down.
+       * corefile.c (core_file_command): Pass current_inferior() down.
+       * corelow.c (core_detach): Add inferior parameter.
+       * darwin-nat.c (darwin_detach): Likewise.
+       * gnu-nat.c (gnu_detach): Likewise.
+       * inf-ptrace.c (inf_ptrace_detach): Likewise.
+       * infcmd.c (detach_command): Pass current_inferior() down to
+       target_detach.
+       * infrun.c (follow_fork_inferior): Pass parent_inf to
+       target_detach.
+       (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
+       target_detach.
+       * linux-nat.c (linux_nat_detach): Add inferior parameter.
+       * linux-thread-db.c (thread_db_detach): Likewise.
+       * nto-procfs.c (procfs_detach): Likewise.
+       * procfs.c (procfs_detach): Likewise.
+       * record.c (record_detach): Likewise.
+       * record.h (struct inferior): Forward-declare.
+       (record_detach): Add inferior parameter.
+       * remote-sim.c (gdbsim_detach): Likewise.
+       * remote.c (remote_detach_1): Likewise.
+       (remote_detach): Likewise.
+       (extended_remote_detach): Likewise.
+       * sol-thread.c (sol_thread_detach): Likewise.
+       * target-debug.h (target_debug_print_inferior_p): New macro.
+       * target-delegates.c: Re-generate.
+       * top.c (kill_or_detach): Pass inferior down to target_detach.
+       * windows-nat.c (windows_detach): Add inferior parameter.
+
+2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * target.h (struct target_ops) <to_detach>: Remove args
+       parameter.
+       (target_detach): Likewise.
+       * target.c (dispose_inferior): Adjust.
+       (target_detach): Remove args parameter, adjust.
+       * aix-thread.c (aix_thread_detach): Adjust.
+       * corefile.c (core_file_command): Adjust.
+       * corelow.c (core_detach): Adjust.
+       * darwin-nat.c (darwin_detach): Adjust.
+       * gnu-nat.c (gnu_detach): Adjust.
+       * inf-ptrace.c (inf_ptrace_detach): Adjust.
+       * infcmd.c (detach_command): Adjust
+       * infrun.c (follow_fork_inferior): Adjust.
+       (handle_vfork_child_exec_or_exit): Adjust.
+       * linux-fork.c (linux_fork_detach): Remove args parameter.
+       * linux-fork.h (linux_fork_detach): Likewise.
+       * linux-nat.c (linux_nat_detach): Likewise, and adjust.
+       * linux-thread-db.c (thread_db_detach): Likewise.
+       * nto-procfs.c (procfs_detach): Likewise.
+       * procfs.c (procfs_detach): Likewise.
+       (do_detach): Remove signo parameter.
+       * record.c (record_detach): Remove args parameter.
+       * record.h (record_detach): Likewise.
+       * remote-sim.c (gdbsim_detach): Likewise.
+       * remote.c (remote_detach_1): Likewise.
+       (remote_detach): Likewise.
+       (extended_remote_detach): Likewise.
+       * sol-thread.c (sol_thread_detach): Likewise.
+       * target-delegates.c: Re-generate.
+       * top.c (struct qt_args) <args>: Remove field.
+       (kill_or_detach): Don't pass args.
+       (quit_force): Don't set args.
+       * windows-nat.c (windows_detach): Remove args parameter.
+
+2018-01-19  Yao Qi  <yao.qi@linaro.org>
+
+       * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
+       (arm_linux_init_abi): Install it.
+
+2018-01-19  Yao Qi  <yao.qi@linaro.org>
+
+       * osabi.c (gdb_osabi_names): Extend the regexp for
+       arm-linux-gnueabihf.
+
+2018-01-18  Yao Qi  <yao.qi@linaro.org>
+
+       * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
+       m_abbrevs.
+       (abbrev_table::add_abbrev): Update.
+       (abbrev_table::lookup_abbrev): Update.
+
+2018-01-18  Yao Qi  <yao.qi@linaro.org>
+
+       * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
+
+2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * compile/compile.c (compile_to_object): Convert "triplet_rx"
+       to "std::string".
+
+2018-01-17  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
+
+2018-01-17  Tom Tromey  <tom@tromey.com>
+
+       * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
+       * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
+       (create_array_type_with_stride): Update.
+       * dwarf2read.c (set_die_type): Update.
+
+2018-01-17  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (delayed_method_info): Remove typedef.
+       (dwarf2_cu::method_info): Now a std::vector.
+       (add_to_method_list): Update.
+       (free_delayed_list): Remove.
+       (compute_delayed_physnames): Update.
+       (process_full_comp_unit, process_full_type_unit): Clear the method
+       list.  Remove cleanups.
+       (psymtab_include_file_name): Add name_holder parameter.  Use
+       unique_xmalloc_ptr.
+       (dwarf_decode_lines): Update.
+
+2018-01-17  Tom Tromey  <tom@tromey.com>
+           Simon Marchi  <simon.marchi@ericsson.com>
+
+       * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
+       (dwarf2_per_objfile::free_cached_comp_units)
+       (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
+       (init_cutu_and_read_dies_no_follow): Update.
+       (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
+       (dwarf2_cu::~dwarf2_cu): New.
+       (free_heap_comp_unit, free_stack_comp_unit): Remove.
+       (age_cached_comp_units, free_one_cached_comp_unit): Update.
+
+2018-01-17  Tom Tromey  <tom@tromey.com>
+           Simon Marchi  <simon.marchi@ericsson.com>
+
+       * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
+       (struct die_reader_specs) <abbrev_table>: New member.
+       (struct abbrev_table): Add constructor.
+       <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
+       <abbrev_obstack>: Now an auto_obstack.
+       (abbrev_table_up): New typedef.
+       (init_cu_die_reader): Add abbrev_table parameter.
+       (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
+       Add result_dwo_abbrev_table.
+       (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
+       (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
+       Update.
+       (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
+       parameter.
+       (skip_children): Update.
+       (abbrev_table::alloc_abbrev): Rename from
+       abbrev_table_alloc_abbrev.
+       (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
+       (abbrev_table::lookup_abbrev): Rename from
+       abbrev_table_lookup_abbrev.
+       (abbrev_table_read_table): Return abbrev_table_up.
+       (abbrev_table_free, abbrev_table_free_cleanup)
+       (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
+       (load_partial_dies): Update.
+
+2018-01-17  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (dwarf2_compute_name): Update comment.
+       (read_func_scope, read_variable): Update.
+       (new_symbol): Remove.
+       (new_symbol_full): Rename to new_symbol.
+
+2018-01-17  Mike Gulick  <mgulick@mathworks.com>
+
+       PR gdb/16577
+       * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
+       a warning instead of throwing an error, set section size to 0 and return
+       NULL.
+       * gdb_bfd.h (gdb_bfd_map_section): Update description.
+
+2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
+       std::string.
+       (linux_ptrace_attach_fail_reason_string): Likewise.
+       * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
+       Likewise.
+       (linux_ptrace_attach_fail_reason_string): Likewise.
+       * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
+
+2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * linux-nat.c (linux_nat_attach): Remove xstrdup.
+
+2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
+
+       PR gdb/21559
+       * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
+       checking for fs_base/gs_base fields in struct user_regs_struct.
+       * configure: Regenerate.
+
+2018-01-17  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
+       function.
+       (aarch64_linux_init_abi): Install it to gdbarch hook
+       gcc_target_options.
+
+2018-01-15  Pedro Alves  <palves@redhat.com>
+
+       * common/signals-state-save-restore.c
+       (save_original_signals_state): Fix typos.
+
+2017-01-12  Tom Tromey  <tom@tromey.com>
+           Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * Makefile.in (install-only): Install gdb-add-index.
+
+2018-01-12  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-tdep.c (KVE_PROTECTION): Correct value.
+
+2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * infrun.c (keep_going_pass_signal): Clear step-over info when
+       insert_breakpoints fails.
+
+2018-01-11  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/22583
+       * infrun.c (resume): Rename to ...
+       (resume_1): ... this.
+       (resume): Reimplement as wrapper around resume_1.
+
+2018-01-11  Pedro Alves  <palves@redhat.com>
+
+       PR remote/22597
+       * remote.c (remote_parse_stop_reply): Default to the last-set
+       general thread instead of to 'magic_null_ptid'.
+
+2018-01-10  Pedro Alves  <palves@redhat.com>
+
+       * language.h (language_get_symbol_name_matcher): Rename ...
+       (get_symbol_name_matcher): ... this.
+       * language.c (language_get_symbol_name_matcher): Ditto.
+       * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
+       callers adjusted.
+
+2018-01-10  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/22670
+       * dwarf2read.c
+       (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
+       Adjust to use language_get_symbol_name_matcher instead of
+       language_defn::la_get_symbol_name_matcher.
+       * language.c (language_get_symbol_name_matcher): If in Ada mode
+       and the lookup name is a verbatim match, return Ada's matcher.
+       * language.h (language_get_symbol_name_matcher): Adjust comment.
+       (ada_lookup_name_info::verbatim_p):: New method.
+
+2018-01-10  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/22670
+       * ada-lang.c (ada_collect_symbol_completion_matches): If the
+       minsym's language is language_auto or language_cplus, pass down
+       language_ada instead.
+       * symtab.c (compare_symbol_name): Don't frob symbol language here.
+
 2018-01-10  Pedro Alves  <palves@redhat.com>
 
        PR gdb/22670
This page took 0.02702 seconds and 4 git commands to generate.