]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/ChangeLog
hurd: Add shared mig declarations
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
index cf21973191b77d262b461112adae0d1e50d73c85..c95c168b88086a88c564a3deef67b6fa343602a0 100644 (file)
@@ -1,3 +1,460 @@
+2020-06-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
+       "-include gnu-nat-mig.h".
+       * gnu-nat-mig.h: New file.
+       * gnu-nat.c: Include "gnu-nat-mig.h".
+       (exc_server, msg_reply_server, notify_server,
+       process_reply_server): Remove declarations.
+
+2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
+       steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
+       inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
+       inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
+       inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
+       inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
+       inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
+       proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
+       proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
+       to gnu_nat_target class.
+       * gnu-nat.c: Likewise.
+       (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
+       set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
+       set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
+       object.
+       (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
+       instead of `gnu_target'.
+
+2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * i386-gnu-tdep.c: Include "gdbcore.h"
+       (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
+       (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
+       I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
+       (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
+       i386_gnu_sigcontext_addr): New functions
+       (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
+       i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
+       tdep.
+
+2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
+       before fork_inferior call. Avoid calling it if target_is_pushed returns
+       true.
+
+2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * gnu-nat.h (gnu_target): New variable declaration.
+       * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
+       gnu_target.
+       * gnu-nat.c (gnu_target): New variable.
+       (inf_validate_procs): Pass gnu_target to thread_change_ptid,
+       add_thread_silent, and add_thread calls.
+       (gnu_nat_target::create_inferior): Pass gnu_target to
+       add_thread_silent, thread_change_ptid call.
+       (gnu_nat_target::detach): Pass gnu_target to detach_inferior
+       call.
+
+2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
+       (gnu_nat_target::find_memory_regions): Remove unused
+       `old_address' variable.
+
+2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * gnu-nat.c: Include "gdbarch.h".
+
+2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * reply_mig_hack.awk (Error return): Cast function through
+       void *, to bypass compiler function call check.
+
+2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
+       $(srcdir)/reply_mig_hack.awk.
+
+2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * gnu-nat.h (gnu_debug_flag): Set type to bool.
+
+2020-05-30  Jonny Grant  <jg@jguk.org>
+
+       * configure.ac (ACX_BUGURL): change bug URL to https.
+
+2020-05-30  Pedro Alves  <palves@redhat.com>
+
+       * cp-support.c (replace_typedefs_template): New.
+       (replace_typedefs_qualified_name): Handle
+       DEMANGLE_COMPONENT_TEMPLATE.
+
+2020-05-29  Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
+       dwarf2/index-cache.h, dwarf2/index-write.c,
+       dwarf2/index-write.h, dwarf2/line-header.c,
+       dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
+       dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
+       variables and fields from `dwarf2_per_objfile` to just
+       `per_objfile` throughout.
+
+2020-05-28  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
+       <push_dwarf_reg_entry_value>: Add comment.
+
+2020-05-28  Kevin Buettner  <kevinb@redhat.com>
+           Keith Seitz  <keiths@redhat.com>
+
+       * python/python.c (do_start_initialization): Call PyEval_SaveThread
+       instead of PyEval_ReleaseLock.
+       (class gdbpy_gil): Move to earlier in file.
+       (finalize_python): Set gdb_python_initialized.
+       (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil.  Return early
+       when not initialized.
+
+2020-05-28  Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
+       <push_dwarf_reg_entry_value>: Remove assert.  Override
+       per_objfile with caller_per_objfile.
+
+2020-05-28  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
+       PR gold/15646 workaround to symbol kind "type".
+
+2020-05-27  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
+
+2020-05-27  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
+       Use htab_find_with_hash.
+       <add_abbrev>: Remove "abbrev_number" parameter.
+       * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
+       "abbrev_number" parameter.  Use htab_find_slot_with_hash.
+       (hash_abbrev): Add comment.
+       (abbrev_table::lookup_abbrev): Move to header file.
+       (abbrev_table::read): Update.
+
+2020-05-27  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2/read.c (struct partial_die_info) <name>: Declare new
+       method.
+       <canonical_name>: New member.
+       <raw_name>: Rename from "name".
+       (partial_die_info): Initialize canonical_name.
+       (scan_partial_symbols): Check raw_name.
+       (partial_die_parent_scope, partial_die_full_name)
+       (add_partial_symbol, add_partial_subprogram)
+       (add_partial_enumeration, load_partial_dies): Use "name" method.
+       (partial_die_info::name): New method.
+       (partial_die_info::read, guess_partial_die_structure_name)
+       (partial_die_info::fixup): Update.
+
+2020-05-27  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
+       <get_ref_die_offset>: Inline.
+       <get_ref_die_offset_complaint>: New method.
+       * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
+       (attribute::get_ref_die_offset_complaint): Rename from
+       get_ref_die_offset.  Just issue complaint.
+
+2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
+
+       * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
+
+2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
+
+       * exec.c (exec_file_attach): Use errno value of first openp failure.
+
+2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
+
+       * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
+       Don't close thread handle.
+
+2020-05-27  Tom Tromey  <tom@tromey.com>
+           Simon Marchi  <simon.marchi@efficios.com>
+
+       * objfiles.h (struct objfile) <partial_symtabs>: Now a
+       shared_ptr.
+       * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
+       member.
+       * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
+       dwarf2_per_bfd_objfile_data_key>: New globals.
+       (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
+       (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
+       (dwarf2_initialize_objfile): Consider cases where per_bfd can be
+       shared.
+       (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
+       short-circuit when sharing.
+       (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
+       (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
+
+2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
+       to...
+       (struct dwarf2_per_objfile) <line_header_hash>: ... here.
+       * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
+
+2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
+       build_name_components, find_name_components_bounds>:
+       Add per_objfile parameter.
+       (struct mapped_index) <symbol_name_at>: Likewise.
+       (struct mapped_debug_names): Remove constructor.
+       <dwarf2_per_objfile>: Remove field.
+       <namei_to_name, symbol_name_at>: Add per_objfile parameter.
+       (mapped_index_base::find_name_components_bounds,
+       mapped_index_base::build_name_components,
+       dw2_expand_symtabs_matching_symbol): Likewise.
+       (class mock_mapped_index) <symbol_name_at>: Likewise.
+       (check_match): Likewise.
+       (check_find_bounds_finds): Likewise.
+       (test_mapped_index_find_name_component_bounds): Update.
+       (CHECK_MATCH): Update.
+       (dw2_expand_symtabs_matching): Update.
+       (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
+       per_objfile parameter.
+       <find_vec_in_debug_names>: Likewise.
+       <m_per_objfile>: New field.
+       (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
+       parameter.
+       (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
+       (dw2_debug_names_iterator::next): Update.
+       (dw2_debug_names_lookup_symbol): Update.
+       (dw2_debug_names_expand_symtabs_for_function): Update.
+       (dw2_debug_names_map_matching_symbols): Update.
+       (dw2_debug_names_expand_symtabs_matching): Update.
+       (dwarf2_read_debug_names): Update.
+
+2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
+       (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
+       move to dwarf2_per_objfile.
+       <read_in_chain>: Remove.
+       (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
+       remove_all_cus, age_comp_units>: New methods.
+       <m_dwarf2_cus>: New member.
+       (struct dwarf2_per_cu_data) <cu>: Remove.
+       * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
+       (age_cached_comp_units, free_one_cached_comp_unit): Remove,
+       moved to methods of dwarf2_per_objfile.
+       (dwarf2_clear_marks): Remove.
+       (dwarf2_queue_item::~dwarf2_queue_item): Update.
+       (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
+       (dwarf2_per_bfd::free_cached_comp_units): Remove.
+       (dwarf2_per_objfile::remove_all_cus): New.
+       (class free_cached_comp_units) <~free_cached_comp_units>:
+       Update.
+       (load_cu): Update.
+       (dw2_do_instantiate_symtab): Adjust.
+       (fill_in_sig_entry_from_dwo_entry): Adjust.
+       (cutu_reader::init_tu_and_read_dwo_dies): Update.
+       (cutu_reader::cutu_reader): Likewise.
+       (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
+       (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
+       (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
+       and dwarf2_per_objfile::age_comp_units.
+       (load_partial_comp_unit): Update.
+       (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
+       (process_queue): Likewise.
+       (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
+       backlink.
+       (dwarf2_read_addr_index): Likewise.
+       (follow_die_offset): Likewise.
+       (dwarf2_fetch_die_loc_sect_off): Likewise.
+       (dwarf2_fetch_constant_bytes): Likewise.
+       (dwarf2_fetch_die_type_sect_off): Likewise.
+       (follow_die_sig_1): Likewise.
+       (load_full_type_unit): Likewise.
+       (read_signatured_type): Likewise.
+       (dwarf2_cu::dwarf2_cu): Don't set cu field.
+       (dwarf2_cu::~dwarf2_cu): Remove.
+       (dwarf2_per_objfile::get_cu): New.
+       (dwarf2_per_objfile::set_cu): New.
+       (age_cached_comp_units): Rename to...
+       (dwarf2_per_objfile::age_comp_units): ... this.  Adjust
+       to std::unordered_map.
+       (free_one_cached_comp_unit): Rename to...
+       (dwarf2_per_objfile::remove_cu): ... this.  Adjust
+       to std::unordered_map.
+       (dwarf2_per_objfile::~dwarf2_per_objfile): New.
+       (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
+       a dwarf2_per_objfile in data.
+       (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
+       (dwarf2_clear_marks): Remove.
+
+2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
+       `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
+       (init_tu_and_read_dwo_dies): Likewise.
+       (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
+       (cutu_reader::cutu_reader): Likewise.
+       (load_partial_comp_unit): Likewise.
+       (process_psymtab_comp_unit): Update.
+       (build_type_psymtabs_1): Update.
+       (process_skeletonless_type_unit): Update.
+       (load_full_comp_unit): Update.
+       (find_partial_die): Update.
+       (dwarf2_read_addr_index): Update.
+       (read_signatured_type): Update.
+
+2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
+       m_header_read_in>: New fields.
+       <get_header>: New method.
+       * dwarf2/read.c (per_cu_header_read_in): Remove.
+       (dwarf2_per_cu_data::get_header): New.
+       (dwarf2_per_cu_data::addr_size): Update.
+       (dwarf2_per_cu_data::offset_size): Update.
+       (dwarf2_per_cu_data::ref_addr_size): Update.
+
+2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * dwarf2/read.c (load_cu): Return dwarf2_cu.
+       (dw2_do_instantiate_symtab): Update.
+       (queue_and_load_all_dwo_tus): Change parameter from
+       dwarf2_per_cu_data to dwarf2_cu.
+       (dwarf2_fetch_die_loc_sect_off): Update.
+       (dwarf2_fetch_constant_bytes): Update.
+       (dwarf2_fetch_die_type_sect_off): Update.
+
+2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * dwarf2/read.c (process_full_comp_unit,
+       process_full_type_unit): Remove per_cu, per_objfile paramters.
+       Add dwarf2_cu parameter.
+       (process_queue): Update.
+
+2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * dwarf2/read.c (create_cu_from_index_list): Replace
+       dwarf2_per_objfile parameter with dwarf2_per_bfd.
+       (create_cus_from_index_list): Likewise.
+       (create_cus_from_index): Likewise.
+       (create_signatured_type_table_from_index): Likewise.
+       (create_cus_from_debug_names_list): Likewise.
+       (create_cus_from_debug_names): Likewise.
+       (dwarf2_read_gdb_index): Update.
+       (dwarf2_read_debug_names): Update.
+
+2020-05-27  Tom Tromey  <tom@tromey.com>
+           Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf2/read.h (struct dwarf2_per_objfile)
+       <get_type_for_signatured_type, set_type_for_signatured_type>:
+       New methods.
+       <m_type_map>: New member.
+       (struct signatured_type) <type>: Remove.
+       * dwarf2/read.c
+       (dwarf2_per_objfile::get_type_for_signatured_type,
+       dwarf2_per_objfile::set_type_for_signatured_type): New.
+       (get_signatured_type): Use new methods.
+
+2020-05-27  Tom Tromey  <tom@tromey.com>
+           Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf2/read.h (struct type_unit_group_unshareable): New.
+       (struct dwarf2_per_objfile) <type_units>: New member.
+       <get_type_unit_group_unshareable>: New method.
+       * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
+       num_symtabs, symtabs>: Remove; move to
+       type_unit_group_unshareable.
+       (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
+       (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
+       (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
+
+2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf2/read.h (struct dwarf2_per_cu_data):
+       <dwarf2_per_objfile>: Remove.
+       * dwarf2/read.c (create_cu_from_index_list): Don't assign
+       dwarf2_per_objfile.
+       (create_signatured_type_table_from_index): Likewise.
+       (create_signatured_type_table_from_debug_names): Likewise.
+       (create_debug_type_hash_table): Likewise.
+       (fill_in_sig_entry_from_dwo_entry): Likewise.
+       (create_type_unit_group): Likewise.
+       (read_comp_units_from_section): Likewise.
+       (create_cus_hash_table): Likewise.
+
+2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
+       dwarf2_per_cu_data::dwarf2_per_objfile.
+       (compute_compunit_symtab_includes): Likewise.
+       (dwarf2_cu::start_symtab): Likewise.
+
+2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
+       parameter.
+       * dwarf2/read.c (get_die_type_at_offset): Likewise.
+       (read_namespace_alias): Update.
+       (lookup_die_type): Update.
+       (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
+       * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
+       Update.
+       (disassemble_dwarf_expression): Update.
+
+2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf2/read.h (struct dwarf2_queue_item): Add
+       dwarf2_per_objfile parameter, assign new parameter.
+       <per_objfile>: New field.
+       * dwarf2/read.c (free_one_cached_comp_unit): Add
+       dwarf2_per_objfile parameter.
+       (queue_comp_unit): Likewise.
+       (dw2_do_instantiate_symtab): Update.
+       (process_psymtab_comp_unit): Update.
+       (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
+       (process_imported_unit_die): Update.
+       (queue_and_load_dwo_tu): Update.
+       (follow_die_offset): Update.
+       (follow_die_sig_1): Update.
+
+2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
+       * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
+       (read_call_site_scope): Assign per_objfile.
+       (dwarf2_per_cu_data::objfile): Remove.
+       * gdbtypes.h (struct call_site) <per_objfile>: New member.
+       * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
+       dwarf2_per_objfile parameter.
+       * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
+       dwarf2_per_objfile parameter.
+       (dwarf_expr_reg_to_entry_parameter): Add output
+       dwarf2_per_objfile parameter.
+       (locexpr_get_frame_base): Update.
+       (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
+       <push_dwarf_reg_entry_value>: Update.
+       <call_site_to_target_addr>: Update.
+       (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
+       parameter.
+       (value_of_dwarf_reg_entry): Update.
+       (rw_pieced_value): Update.
+       (indirect_synthetic_pointer): Update.
+       (dwarf2_evaluate_property): Update.
+       (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
+       parameter.
+       (locexpr_read_variable): Update.
+       (locexpr_get_symbol_read_needs): Update.
+       (loclist_read_variable): Update.
+
 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
 
        * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,