gdb: move cheap pointer equality check earlier in types_equal
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 8e7b92087aab59ab05b570253b6904300d1b48a8..d8b3313030a993313f4ffeffd338d2a85244874c 100644 (file)
@@ -1,3 +1,297 @@
+2021-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdbtypes.c (types_equal): Move pointer equality check earlier in
+       the function.
+
+2021-04-07  Caroline Tice  <cmtice@google.com>
+
+       * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
+       the search paths used resolve relative location of .dwo file.
+
+2021-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
+       assert.
+       (dwarf2_section_info::get_file_name): Add an assert.
+       (dwarf2_section_info::read_string): Display a minimal, sane error
+       when the dwarf2_section_info is not associated with a bfd section.
+
+2021-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * top.c (staged_gdb_datadir): Update comment.
+       (set_gdb_datadir): Copy the value of gdb_datadir back into
+       staged_datadir.
+       (init_main): Initialise staged_gdb_datadir.
+
+2021-04-06  Tom de Vries  <tdevries@suse.de>
+
+       PR breakpoints/25884
+       * infcmd.c (prepare_one_step): Using inline frame info to narrow
+       stepping range.
+
+2021-04-06  Tom de Vries  <tdevries@suse.de>
+
+       PR tui/27680
+       * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
+       to style.parse.
+
+2021-04-04  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * avr-tdep.c (avr_frame_unwind_cache): Use
+       trad_frame_saved_reg::is_addr.
+
+2021-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
+       adjust callers.
+
+2021-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * psympriv.h (struct partial_symtab) <partial_symtab>: Change
+       objfile parameter for objfile_per_bfd_storage, adjust callers.
+       (struct standard_psymtab) <standard_psymtab>: Likewise.
+       (struct legacy_psymtab) <legacy_psymtab>: Likewise.
+       * psymtab.c (partial_symtab::partial_symtab): Likewise.
+       * ctfread.c (struct ctf_psymtab): Likewise.
+       * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
+       * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
+       (dwarf2_create_include_psymtab): Likewise.
+       * objfiles.h (struct objfile_per_bfd_storage)
+       <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
+       <get_bfd>: New method.
+       <m_bfd>: New field.
+       * objfiles.c (get_objfile_bfd_data): Adjust.
+
+2021-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * psymtab.c (partial_symtab::partial_symtab): Change
+       last_objfile_name to be an std::string.
+       * symfile.c (allocate_symtab): Likewise.
+
+2021-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
+       methods.
+       (struct objfile) <intern>: Use
+       objfile::objfile_per_bfd_storage::intern.
+
+2021-04-01  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
+       with type::is_flag_enum.
+
+2021-04-01  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.h (struct type) <is_flag_enum,
+       set_is_flag_enum>: New methods.
+       (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
+       write call sites to use type::set_is_flag_enum.
+
+2021-04-01  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
+       with type::is_declared_class.
+
+2021-04-01  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbtypes.h (struct type) <is_declared_class,
+       set_is_declared_class>: New methods.
+       (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
+       write call sites to use type::set_is_declared_class.
+
+2021-02-28  Boris Staletic  <boris.staletic@gmail.com>
+
+       * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
+       to avoid deprecation warnings.
+
+2021-04-01  Martin Liska  <mliska@suse.cz>
+
+       * cp-name-parser.y: Use startswith instead of strncmp.
+       * m2-exp.y: Likewise.
+       * macroexp.c (substitute_args): Likewise.
+       * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
+       * rust-exp.y: Likewise.
+
+2021-03-31  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
+       with dw2_map_matching_symbols.
+       (dwarf2_gdb_index::expand_symtabs_matching): Merge with
+       dw2_expand_symtabs_matching.
+
+2021-03-31  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2/stringify.h: Fix typo.
+
+2021-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       PR gdb/27541
+       * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
+       with objfiles using READNOW.
+
+2021-03-29  Tom Tromey  <tromey@adacore.com>
+
+       * top.c (check_frame_language_change): Update.
+       * language.c (language_info): Remove parameter.
+       * language.h (language_info): Remove parameter.
+
+2021-03-29  Luis Machado  <luis.machado@linaro.org>
+
+       * compile/compile.c (get_args): Don't add empty argv entries.
+
+2021-03-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       gdb:
+       * procfs.c (procfs_target::attach): Define inf.
+       Use it.
+       (procfs_target::create_inferior): Likewise.
+
+2021-03-28  Tom Tromey  <tom@tromey.com>
+
+       * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
+       (elf_symfile_read): Simplify.
+       * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
+       (make_lazy_dwarf_reader): New function.
+       (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
+       (dwarf2_initialize_objfile): Return void.  Remove index_kind
+       parameter.  Push on 'qf' list.
+       * dwarf2/public.h (dwarf2_initialize_objfile): Change return
+       type.  Remove 'index_kind' parameter.
+       (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
+
+2021-03-27  Tom Tromey  <tom@tromey.com>
+
+       * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
+
+2021-03-27  Tom Tromey  <tom@tromey.com>
+
+       * elfread.c (elf_symfile_read): Don't clear 'qf'.
+
+2021-03-26  Lancelot Six  <lsix@lancelotsix.com>
+
+       * contrib/gdb-add-index.sh: Avoid variable shadowing and get
+       rid of 'local'.
+
+2021-03-26  Tom Tromey  <tom@tromey.com>
+
+       * symtab.c (struct output_source_filename_data): Add 'output'
+       method and operator().
+       (output_source_filename_data::output): Rename from
+       output_source_filename.
+       (output_partial_symbol_filename): Remove.
+       (info_sources_command): Update.
+       (struct add_partial_filename_data): Add operator().
+       (add_partial_filename_data::operator()): Rename from
+       maybe_add_partial_symtab_filename.
+       (make_source_files_completion_list): Update.
+       * symfile.c (quick_symbol_functions): Update.
+       * symfile-debug.c (objfile::map_symbol_filenames): Update.
+       * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
+       'need_fullname'.  Remove 'data' parameter.
+       (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
+       * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
+       * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
+       Change type of 'fun' and 'need_fullname'.  Remove 'data'
+       parameter.
+       * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
+       of 'fun' and 'need_fullname'.  Remove 'data' parameter.
+       * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
+       parameter.
+       (mi_cmd_file_list_exec_source_files): Update.
+       * dwarf2/read.c
+       (dwarf2_base_index_functions::map_symbol_filenames): Update.
+
+2021-03-26  Tom Tromey  <tom@tromey.com>
+
+       * ada-lang.c (struct match_data): Add operator().
+       (match_data::operator()): Rename from aux_add_nonlocal_symbols.
+       (callback): Remove 'callback'.
+
+2021-03-26  Tom Tromey  <tom@tromey.com>
+
+       * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
+       call make_ignore_params once.
+
+2021-03-26  Tom Tromey  <tom@tromey.com>
+
+       * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
+       "user" check.
+
+2021-03-26  Simon Marchi  <simon.marchi@efficios.com>
+           Pedro Alves  <pedro@palves.net>
+
+       * async-event.c: Include "infrun.h".
+       (async_event_handler_marked): New.
+       * async-event.h (async_event_handler_marked): Declare.
+       * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
+       inferior before calling target method.  Don't commit-resumed if
+       target_has_pending_events is true.
+       * remote.c (remote_target::has_pending_events): New.
+       * target-delegates.c: Regenerate.
+       * target.c (target_has_pending_events): New.
+       * target.h (target_ops::has_pending_events): New target method.
+       (target_has_pending_events): New.
+
+2021-03-26  Simon Marchi  <simon.marchi@efficios.com>
+           Pedro Alves  <pedro@palves.net>
+
+       * infcmd.c (run_command_1, attach_command, detach_command)
+       (interrupt_target_1): Use scoped_disable_commit_resumed.
+       * infrun.c (do_target_resume): Remove
+       target_commit_resume call.
+       (commit_resume_all_targets): Remove.
+       (maybe_set_commit_resumed_all_targets): New.
+       (maybe_call_commit_resumed_all_targets): New.
+       (enable_commit_resumed): New.
+       (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
+       (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
+       (scoped_disable_commit_resumed::reset)
+       (scoped_disable_commit_resumed::reset_and_commit)
+       (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
+       (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
+       New.
+       (proceed): Use scoped_disable_commit_resumed and
+       maybe_call_commit_resumed_all_targets.
+       (fetch_inferior_event): Use scoped_disable_commit_resumed.
+       * infrun.h (struct scoped_disable_commit_resumed): New.
+       (maybe_call_commit_resumed_all_process_targets): New.
+       (struct scoped_enable_commit_resumed): New.
+       * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
+       * process-stratum-target.h (class process_stratum_target):
+       <commit_resumed_state>: New.
+       * record-full.c (record_full_wait_1): Change commit_resumed_state
+       around calling commit_resumed.
+       * remote.c (class remote_target) <commit_resume>: Rename to...
+       <commit_resumed>: ... this.
+       (struct stop_reply): Move up.
+       (remote_target::commit_resume): Rename to...
+       (remote_target::commit_resumed): ... this.  Check if there is any
+       thread pending vCont resume.
+       (remote_target::remote_stop_ns): Generate stop replies for resumed
+       but pending vCont threads.
+       (remote_target::wait_ns): Add gdb_assert.
+       * target-delegates.c: Regenerate.
+       * target.c (target_wait, target_resume): Assert that the current
+       process_stratum target isn't in commit-resumed state.
+       (defer_target_commit_resume): Remove.
+       (target_commit_resume): Remove.
+       (target_commit_resumed): New.
+       (make_scoped_defer_target_commit_resume): Remove.
+       (target_stop): Assert that the current process_stratum target
+       isn't in commit-resumed state.
+       * target.h (struct target_ops) <commit_resume>: Rename to ...
+        <commit_resumed>: ... this.
+       (target_commit_resume): Remove.
+       (target_commit_resumed): New.
+       (make_scoped_defer_target_commit_resume): Remove.
+       * top.c (wait_sync_command_done): Use
+       scoped_enable_commit_resumed.
+
+2021-03-26  Pedro Alves  <pedro@palves.net>
+
+       * target.c (target_always_non_stop_p): Also check whether the
+       target can async.
+
 2021-03-26  Tom Tromey  <tom@tromey.com>
 
        * dwarf2/read.c (dwarf2_read_debug_names)
This page took 0.028392 seconds and 4 git commands to generate.