Change some psymtab fields to bool
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index d8482aaaa5614371561d994216847b26331d1a05..345a81c935df05a2a0fa08ee78765443fce2383a 100644 (file)
@@ -1,3 +1,365 @@
+2020-01-26  Tom Tromey  <tom@tromey.com>
+
+       * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
+       * psymtab.c (psym_print_stats): Update.
+       * psympriv.h (struct partial_symtab) <readin,
+       psymtabs_addrmap_supported, anonymous>: Now bool.
+       * mdebugread.c (psymtab_to_symtab_1): Update.
+       * dwarf2read.c (create_type_unit_group, create_partial_symtab)
+       (build_type_psymtabs_reader, psymtab_to_symtab_1)
+       (process_full_comp_unit, process_full_type_unit): Update.
+       * dbxread.c (dbx_psymtab_to_symtab_1): Update.
+       * ctfread.c (psymtab_to_symtab): Update.
+
+2020-01-26  Tom Tromey  <tom@tromey.com>
+
+       * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
+       * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
+       * psymtab.c (psymtab_storage): Delete psymtabs.
+       (psymtab_storage::allocate_psymtab): Use new.
+       (psymtab_storage::discard_psymtab): Use delete.
+       * psympriv.h (struct partial_symtab): Add constructor and
+       initializers.
+
+2020-01-26  Tom Tromey  <tom@tromey.com>
+
+       * machoread.c: Do not include psympriv.h.
+
+2020-01-25  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * NEWS: Mention the new option and the set/show commands.
+
+2020-01-25  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
+       (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
+       (validate_exec_file): New variables, enums, functions.
+       (exec_file_locate_attach, print_section_info): Style the filenames.
+       (_initialize_exec): Install show_exec_file_mismatch_command and
+        set_exec_file_mismatch_command.
+       * gdbcore.h (validate_exec_file): Declare.
+       * infcmd.c (attach_command): Call validate_exec_file.
+       * remote.c ( remote_target::remote_add_inferior): Likewise.
+
+2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * frame.c (find_frame_sal): Move call to get_next_frame into more
+       inner scope.
+       * inline-frame.c (inilne_state) <inline_state>: Update argument
+       types.
+       (inilne_state) <skipped_symbol>: Rename to...
+       (inilne_state) <skipped_symbols>: ...this, and change to a vector.
+       (skip_inline_frames): Build vector of skipped symbols and use this
+       to reate the inline_state.
+       (inline_skipped_symbol): Add a comment and some assertions, fetch
+       skipped symbol from the list.
+
+2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * buildsym.c (lte_is_less_than): Delete.
+       (buildsym_compunit::end_symtab_with_blockvector): Create local
+       lambda function to sort line table entries, and use
+       std::stable_sort instead of std::sort.
+       * symtab.c (find_pc_sect_line): Skip backward over end of sequence
+       markers when looking for a previous line.
+
+2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * dwarf2read.c (lnp_state_machine::record_line): Include
+       end_sequence parameter in debug print out.  Record the line if we
+       are at an end_sequence marker even if it's not the start of a
+       statement.
+       * symmisc.c (maintenance_print_one_line_table): Print end of
+       sequence markers with 'END' not '0'.
+
+2020-01-24  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/25410
+       * thread.c (scoped_restore_current_thread::restore): Use
+       switch_to_inferior_no_thread.
+       * exec.c: Include "progspace-and-thread.h".
+       (add_target_sections, remove_target_sections):
+       scoped_restore_current_pspace_and_thread instead of
+       scoped_restore_current_thread.
+       * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
+       and aspace to the inferior before calling clone_program_space.
+       Remove stale comment.
+
+2020-01-24  Christian Biesinger  <cbiesinger@google.com>
+
+       * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
+       (arm_netbsd_nat_target::fetch_registers): ...this.
+       (arm_nbsd_nat_target::store_registers): Rename to...
+       (arm_netbsd_nat_target::store_registers): ...this.
+
+2020-01-24  Christian Biesinger  <cbiesinger@google.com>
+
+       * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
+       register_t.
+
+2020-01-24  Christian Biesinger  <cbiesinger@google.com>
+
+       * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
+       Update comment.
+       * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
+       Likewise.
+       * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
+       * gdbcore.h (deprecated_add_core_fns): Update comment to point to
+       the correct replacement (iterate_over_regset_sections).
+       * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
+       Update comment.
+
+2020-01-24  Graham Markall  <graham.markall@embecosm.com>
+
+       PR gdb/23718
+       * gdb/python/python.c (execute_gdb_command): Call
+       async_enable_stdin in catch block.
+
+2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * event-loop.c (start_event_loop): Wrap async_enable_stdin with
+       SWITCH_THRU_ALL_UIS.
+
+2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       PR tui/9765
+       * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
+       comment, add extra parameter, and update to store previous symbol
+       when appropriate.
+       * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
+       add extra parameter.
+       * tui/tui-disasm.c (tui_disassemble): Update header comment,
+       remove unneeded parameter, add try/catch around gdb_print_insn,
+       rewrite to add items to asm_lines vector.
+       (tui_find_backward_disassembly_start_address): New function.
+       (tui_find_disassembly_address): Updated throughout.
+       (tui_disasm_window::set_contents): Update for changes to
+       tui_disassemble.
+       (tui_disasm_window::do_scroll_vertical): No need to adjust the
+       number of lines to scroll.
+
+2020-01-23  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
+       (SECT_OFF_DATA): Likewise.
+       (SECT_OFF_RODATA): Likewise.
+       (SECT_OFF_TEXT): Likewise.
+       (SECT_OFF_BSS): Likewise.
+       (struct objfile) <text_section_offset, data_section_offset>: New
+       methods.
+       * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
+       objfile::text_section_offset.
+       * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
+       * coffread.c (coff_symtab_read): Likewise.
+       (enter_linenos): Likewise.
+       (process_coff_symbol): Likewise.
+       * ctfread.c (get_objfile_text_range): Likewise.
+       * dtrace-probe.c (dtrace_probe::get_relocated_address):
+       Use objfile::data_section_offset.
+       * dwarf2-frame.c (execute_cfa_program): Use
+       objfile::text_section_offset.
+       (dwarf2_frame_find_fde): Likewise.
+       * dwarf2read.c (create_addrmap_from_index): Likewise.
+       (create_addrmap_from_aranges): Likewise.
+       (dw2_find_pc_sect_compunit_symtab): Likewise.
+       (process_psymtab_comp_unit_reader): Likewise.
+       (add_partial_symbol): Likewise.
+       (add_partial_subprogram): Likewise.
+       (process_full_comp_unit): Likewise.
+       (read_file_scope): Likewise.
+       (read_func_scope): Likewise.
+       (read_lexical_block_scope): Likewise.
+       (read_call_site_scope): Likewise.
+       (dwarf2_rnglists_process): Likewise.
+       (dwarf2_ranges_process): Likewise.
+       (dwarf2_ranges_read): Likewise.
+       (dwarf_decode_lines_1): Likewise.
+       (new_symbol): Likewise.
+       (dwarf2_fetch_die_loc_sect_off): Likewise.
+       (dwarf2_per_cu_text_offset): Likewise.
+       * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
+       * hppa-tdep.c (read_unwind_info): Likewise.
+       * ia64-tdep.c (ia64_find_unwind_table): Likewise.
+       * psympriv.h (struct partial_symtab): Likewise.
+       * psymtab.c (find_pc_sect_psymtab): Likewise.
+       * solib-svr4.c (enable_break): Likewise.
+       * stap-probe.c (relocate_address): Use
+       objfile::data_section_offset.
+       * xcoffread.c (enter_line_range): Use
+       objfile::text_section_offset.
+       (read_xcoff_symtab): Likewise.
+
+2020-01-23  Simon Marchi  <simon.marchi@efficios.com>
+
+       * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
+       declaration to narrower scopes.
+
+2020-01-23  Simon Marchi  <simon.marchi@efficios.com>
+
+       * darwin-nat.h (struct darwin_exception_msg, enum
+       darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
+       Move up.
+       (class darwin_nat_target) <wait_1, check_new_threads,
+       decode_exception_message, decode_message, stop_inferior,
+       init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
+       * darwin-nat.c (darwin_check_new_threads): Rename to...
+       (darwin_nat_target::check_new_threads): ... this.
+       (darwin_suspend_inferior_it): Remove.
+       (darwin_decode_exception_message): Rename to...
+       (darwin_nat_target::decode_exception_message): ... this.
+       (darwin_nat_target::resume): Pass target to find_inferior_ptid.
+       (darwin_decode_message): Rename to...
+       (darwin_nat_target::decode_message): ... this.
+       (cancel_breakpoint): Rename to...
+       (darwin_nat_target::cancel_breakpoint): ... this.
+       (darwin_wait): Rename to...
+       (darwin_nat_target::wait_1): ... this.  Use range-based for loop
+       instead of iterate_over_inferiors.
+       (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
+       (darwin_stop_inferior): Rename to...
+       (darwin_nat_target::stop_inferior): ... this.
+       (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
+       (darwin_init_thread_list): Rename to...
+       (darwin_nat_target::init_thread_list): ... this.
+       (darwin_ptrace_him): Rename to...
+       (darwin_nat_target::ptrace_him): ... this.
+       (darwin_nat_target::create_inferior): Pass lambda function to
+       fork_inferior.
+       (darwin_nat_target::detach): Call stop_inferior instead of
+       darwin_stop_inferior.
+       * fork-inferior.h (fork_inferior): Change init_trace_fun
+       parameter to gdb::function_view.
+       * fork-inferior.c (fork_inferior): Likewise.
+
+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):
This page took 0.026797 seconds and 4 git commands to generate.