Cache the text section offset of shared libraries
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index f1904051985a0c630c37f1b0ea17350cb0c5b51a..026aaf1703b330a87e94c91f66e46013f1c1a366 100644 (file)
@@ -1,3 +1,347 @@
+2020-01-23  Hannes Domani  <ssbssa@yahoo.de>
+
+       * i386-cygwin-tdep.c (core_process_module_section): Update.
+       * windows-nat.c (struct lm_info_windows): Add text_offset.
+       (windows_xfer_shared_libraries): Update.
+       * windows-tdep.c (windows_xfer_shared_library):
+       Add text_offset_cached argument.
+       * windows-tdep.h (windows_xfer_shared_library): Update.
+
+2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbarch.sh: Add declaration for _initialize_gdbarch.
+
+2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
+
+       * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
+       (get_sim_inferior_data): Remove use of iterate_over_inferiors,
+       replace with range-based for.
+       (gdbsim_interrupt_inferior): Remove.
+       (gdbsim_target::interrupt): Replace iterate_over_inferiors use
+       with a range-based for.  Inline code from
+       gdbsim_interrupt_inferior.
+
+2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
+
+       * infrun.c (proceed): Fix indentation.
+
+2020-01-21  Tom Tromey  <tromey@adacore.com>
+
+       * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
+       * python/python.c (python_extension_ops): Update.
+       (gdbpy_colorize): New function.
+       * python/lib/gdb/__init__.py (colorize): New function.
+       * extension.h (ext_lang_colorize): Declare.
+       * extension.c (ext_lang_colorize): New function.
+       * extension-priv.h (struct extension_language_ops) <colorize>: New
+       member.
+       * cli/cli-style.c (_initialize_cli_style): Update help text.
+
+2020-01-21  Luis Machado  <luis.machado@linaro.org>
+
+       * aarch64-tdep.c (struct aarch64_displaced_step_closure)
+       <cond>: Change type to bool.
+       (aarch64_displaced_step_b_cond): Update cond to use bool type.
+       (aarch64_displaced_step_cb): Likewise.
+       (aarch64_displaced_step_tb): Likewise.
+
+2020-01-21  Luis Machado  <luis.machado@linaro.org>
+
+       * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
+       output.
+
+2020-01-21  Luis Machado  <luis.machado@linaro.org>
+
+       * aarch64-tdep.c (struct aarch64_displaced_step_closure )
+       <pc_adjust>: Adjust the documentation.
+       (aarch64_displaced_step_fixup): Check if PC really moved before
+       adjusting it.
+
+2020-01-19  Tom Tromey  <tom@tromey.com>
+
+       * disasm.c (~gdb_disassembler): New destructor.
+       (gdb_buffered_insn_length): Call disassemble_free_target.
+       * disasm.h (class gdb_disassembler): Declare destructor.  Use
+       DISABLE_COPY_AND_ASSIGN.
+
+2020-01-19  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (abbrev_table_up): Move typedef earlier.
+       (die_reader_func_ftype): Remove.
+       (cutu_reader): New class.
+       (dw2_get_file_names_reader): Remove "data" parameter.
+       (dw2_get_file_names): Use cutu_reader.
+       (create_debug_type_hash_table): Update.
+       (read_cutu_die_from_dwo): Update comment.
+       (lookup_dwo_unit): Add dwo_name parameter.
+       (cutu_reader::init_tu_and_read_dwo_dies): Now a method.  Remove
+       die_reader_func_ftype and data parameters.
+       (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
+       Remove die_reader_func_ftype and data parameters.
+       (~cutu_reader): New; from init_cutu_and_read_dies.
+       (cutu_reader::cutu_reader): Rename from
+       init_cutu_and_read_dies_no_follow.  Remove die_reader_func_ftype
+       and data parameters.
+       (init_cutu_and_read_dies_simple): Remove.
+       (struct process_psymtab_comp_unit_data): Remove.
+       (process_psymtab_comp_unit_reader): Remove data parameter; add
+       want_partial_unit and pretend_language parameters.
+       (process_psymtab_comp_unit): Use cutu_reader.
+       (build_type_psymtabs_reader): Remove data parameter.
+       (build_type_psymtabs_1): Use cutu_reader.
+       (process_skeletonless_type_unit): Likewise.
+       (load_partial_comp_unit_reader): Remove.
+       (load_partial_comp_unit): Use cutu_reader.
+       (load_full_comp_unit_reader): Remove.
+       (load_full_comp_unit): Use cutu_reader.
+       (struct create_dwo_cu_data): Remove.
+       (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
+       dwo_unit parameters.
+       (create_cus_hash_table): Use cutu_reader.
+       (struct dwarf2_read_addr_index_data): Remove.
+       (dwarf2_read_addr_index_reader): Remove.
+       (dwarf2_read_addr_index): Use cutu_reader.
+       (read_signatured_type_reader): Remove.
+       (read_signatured_type): Use cutu_reader.
+
+2020-01-19  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
+       * tui/tui-wingeneral.h (class tui_suppress_output): New.
+       (tui_wrefresh): Declare.
+       * tui/tui-wingeneral.c (suppress_output): New global.
+       (tui_suppress_output, ~tui_suppress_output): New constructor and
+       destructor.
+       (tui_wrefresh): New function.
+       (tui_gen_win_info::refresh_window): Use tui_wrefresh.
+       (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
+       * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
+       method.
+       * tui/tui-regs.c (tui_data_window::erase_data_content): Call
+       tui_wrefresh.
+       (tui_data_window::no_refresh): New method.
+       (tui_data_item_window::refresh_window): Call tui_wrefresh.
+       (tui_reg_command): Use tui_suppress_output
+       * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
+       * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
+       method.
+       * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
+
+2020-01-19  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.c (tui_update_source_windows_with_line):
+       Handle case where symtab is null.
+
+2020-01-19  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * linux-fork.c (one_fork_p): Simplify.
+
+2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
+
+       * top.c (struct qt_args): Remove.
+       (kill_or_detach): Change return type to void, replace `void *`
+       parameter with a proper one.
+       (print_inferior_quit_action):  Likewise.
+       (quit_confirm): Use range-based for loop to iterate over inferiors.
+       (quit_force): Likewise.
+
+2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
+
+       * mi/mi-main.c (run_one_inferior): Change return type to void, replace
+       `void *` parameter with proper parameters.
+       (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
+       (print_one_inferior): Change return type to void, replace `void *`
+       parameter with proper parameters.
+       (mi_cmd_list_thread_groups): Use range-based loop to iterate over
+       inferiors.
+       (get_other_inferior): Remove.
+       (mi_cmd_remove_inferior): Use range-based loop to iterate over
+       inferiors.
+
+2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
+
+       * mi/mi-interp.c (report_initial_inferior): Remove.
+       (mi_interp::init): Use range-based for to iterate over inferiors.
+
+2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
+
+       * python/py-inferior.c (build_inferior_list): Remove.
+       (gdbpy_ref): Use range-based for loop to iterate over inferiors.
+
+2020-01-16  Christian Biesinger  <cbiesinger@google.com>
+
+       * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
+       (btrace_stitch_trace): Likewise.
+       * charset.c (intermediate_encoding): Likewise (vaild).
+       * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
+       * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
+       * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
+
+2020-01-16  Hannes Domani  <ssbssa@yahoo.de>
+
+       * windows-tdep.c (windows_get_tlb_type):
+       Add rtl_user_process_parameters type.
+
+2020-01-16  Pedro Alves  <palves@redhat.com>
+            Norbert Lange  <nolange79@gmail.com>
+
+       PR build/24805
+       * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
+       (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
+       (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
+       (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
+       (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
+       (ps_plog): Redeclare exported functions with default visibility.
+
+2020-01-16  Nitika Achra  <Nitika.Achra@amd.com>
+
+       * dwarf2loc.c (decode_debug_loclists_addresses): Handle
+       DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
+
+2020-01-15  Simon Marchi  <simon.marchi@efficios.com>
+
+       * infcmd.c (post_create_inferior): Use get_thread_regcache
+       instead of get_current_regcache.
+
+2020-01-14  Tom Tromey  <tom@tromey.com>
+
+       PR symtab/12535:
+       * python/python.c (gdbpy_decode_line): Treat empty string the same
+       as no argument.
+
+2020-01-14  Tom Tromey  <tom@tromey.com>
+
+       * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
+
+2020-01-14  Tom Tromey  <tom@tromey.com>
+
+       * nat/linux-btrace.c: Don't include <config.h>.
+       * nat/linux-ptrace.c: Don't include <config.h>.
+       * nat/x86-linux-dregs.c: Don't include <config.h>.
+
+2020-01-14  Tom Tromey  <tom@tromey.com>
+
+       * configure: Rebuild.
+       * configure.ac: Move many checks to ../gdbsupport/common.m4.
+
+2020-01-14  Tom Tromey  <tom@tromey.com>
+
+       * nat/x86-linux-dregs.c: Include configh.h.
+       * nat/linux-ptrace.c: Include configh.h.
+       * nat/linux-btrace.c: Include configh.h.
+       * defs.h: Include config.h, bfd.h.
+       * configure.ac: Don't source common.host.
+       (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
+       * configure: Rebuild.
+       * acinclude.m4: Update path.
+       * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
+       (CONFIG_SRC_SUBDIR): Remove gdbsupport.
+       (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
+       (CLIBS): Add LIBSUPPORT.
+       (CDEPS): Likewise.
+       (COMMON_SFILES): Remove gdbsupport files.
+       (HFILES_NO_SRCDIR): Likewise.
+       (stamp-version): Update path to create-version.sh.
+       (ALLDEPFILES): Remove gdbsupport files.
+
+2020-01-14  Tom Tromey  <tom@tromey.com>
+
+       * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
+       USE_WIN32API when needed.
+       * configure.ac (USE_WIN32API): Don't define.
+       (WIN32LIBS): Use WIN32APILIBS.
+       * configure: Rebuild.
+
+2020-01-14  Tom Tromey  <tom@tromey.com>
+
+       * configure: Rebuild.
+       * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
+
+2020-01-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * skip.c (skip_function_command): Make skip w/o arguments use the
+       name of the inlined function if pc is inside any inlined function.
+
+2020-01-14  Luis Machado  <luis.machado@linaro.org>
+
+       * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
+       * infrun.c (resume_1): Likewise.
+       (handle_inferior_event): Remove stale comment.
+       * linux-nat.c (linux_nat_target::resume): Update comments.
+       (save_stop_reason): Likewise.
+       (linux_nat_filter_event): Likewise.
+       * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
+
+2020-01-13  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * elfread.c (record_minimal_symbol): Set section index to 0 for
+       non-allocatable sections.
+
+
+2020-01-13  Ali Tamur <tamur@google.com>
+
+       * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
+       (dwarf2_cu): Add str_offsets_base field.  Change the type of addr_base
+       to gdb::optional.  Update comments.
+       (dwo_file): Update comments.
+       (read_attribute): Update API to take an additional out parameter,
+       need_reprocess.  This is used to mark attributes that need other
+       attributes (e.g. str_offsets_base) for correct computation which may not
+       have been read yet.
+       (read_attribute_reprocess): New function declaration.
+       (read_addr_index): Likewise.
+       (read_dwo_str_index): Likewise.
+       (read_stub_str_index): Likewise.
+       (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
+       (lookup_addr_base): New function definition.
+       (lookup_ranges_base): Likewise.
+       (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
+       lookup_ranges_base.
+       (init_cutu_and_read_dies): Update comments.
+       (init_cutu_and_read_dies_no_follow): Change API to take parent compile
+       unit.  This is used to inherit parent's str_offsets_base and addr_base.
+       Update comments.
+       (init_cutu_and_read_dies_simple): Reflect API changes.
+       (skip_one_die): Reflect API changes.  Handle DW_FORM_rnglistx.
+       (create_cus_hash_table): Change API to take parent compile unit.  
+       Reflect API changes.
+       (open_and_init_dwo_file): Reflect API changes.
+       (dwarf2_get_pc_bounds): Update comments.
+       (dwarf2_record_block_ranges): Likewise.
+       (read_full_die_1): Change implementation to reprocess attributes that
+       need str_offsets_base and addr_base.
+       (partial_die_info::read): Likewise.
+       (read_attribute_reprocess): New function definition.
+       (read_attribute_value): Change API to take an additional out parameter,
+       need_reprocess.  Handle DW_FORM_rnglistx.  No longer trigger an error
+       when a non-dwo compile unit has index based attributes.
+       (read_attribute): Reflect API changes.
+       (read_addr_index_1): Reflect API changes.  Update comments.
+       (dwarf2_read_addr_index_data): Reflect API changes.
+       (dwarf2_read_addr_index): Likewise.
+       (read_str_index): Change API and implementation.  This becomes a helper
+       to be used by the new string index related methods.  Update error
+       message and comments.
+       (read_dwo_str_index): New function definition.
+       (read_stub_str_index): Likewise.
+       * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
+       * symfile.h (dwarf2_debug_sections): Likewise.
+       * xcoffread.c (dwarf2_debug_sections): Likewise.
+
+2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbcore.h (struct core_fns) <core_read_registers>: Change
+       core_reg_sect type to gdb_byte *.
+       * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
+       * cris-tdep.c (fetch_core_registers): Likewise.
+       * corelow.c (core_target::get_core_register_section): Change
+       type of `contents` to gdb::byte_vector.
+
+2020-01-13  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * tui/tui-wingeneral.c (box_win): Position the title in the center
+       of the border.
+
 2020-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * corelow.c (core_target::get_core_register_section): Use
This page took 0.027263 seconds and 4 git commands to generate.