archive.c bfd_zalloc
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 2ecc2aae4704e88d85b2ddc12f93c861234df8a9..54565efd0a582d56828367dfd15bd97e73a35db0 100644 (file)
@@ -1,3 +1,504 @@
+2019-12-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * buildsym.c (buildsym_compunit::record_line): Do no longer ignore
+       line 65535.
+
+2019-12-27  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
+       commented-out code.
+       * tui/tui.c: Remove #if 0 code.
+
+2019-12-27  Tom Tromey  <tom@tromey.com>
+
+       * cli/cli-cmds.c (print_disassembly): Reorder "if".
+
+2019-12-27  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui.c (tui_active): Now bool.
+       (tui_finish_init): Likewise.
+       (tui_enable): Update.
+       (tui_disable): Update.
+       (tui_is_window_visible): Update.
+       * tui/tui.h (tui_active): Now bool.
+
+2019-12-27  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-source.c (tui_source_window::maybe_update): Update.
+       * tui/tui-regs.c (tui_data_window::display_registers_from):
+       Update.
+       * tui/tui-layout.c (tui_gen_win_info::resize): Update.
+       * tui/tui-data.h (struct tui_gen_win_info) <viewport_height>:
+       Remove.
+       * tui/tui-command.c (tui_cmd_window::resize): Update.
+
+2019-12-26  Christian Biesinger  <cbiesinger@google.com>
+
+       * ada-lang.c (ada_decode_symbol): Update.
+       * buildsym.c (add_symbol_to_list): Update.
+       * coffread.c (process_coff_symbol): Update.
+       * ctfread.c (ctf_add_enum_member_cb): Update.
+       (new_symbol): Update.
+       (ctf_add_var_cb): Update.
+       * dwarf2read.c (fixup_go_packaging): Update.
+       (dwarf2_compute_name): Update.
+       (new_symbol): Update.
+       * jit.c (finalize_symtab): Update.
+       * language.c (language_alloc_type_symbol): Update.
+       * mdebugread.c (new_symbol): Update.
+       * minsyms.c (minimal_symbol_reader::record_full): Update.
+       (minimal_symbol_reader::install): Update.
+       * psymtab.c (print_partial_symbols): Update.
+       (psymbol_hash): Update.
+       (psymbol_compare): Update.
+       (add_psymbol_to_bcache): Update.
+       (maintenance_check_psymtabs): Update.
+       * stabsread.c (define_symbol): Update.
+       * symtab.c (symbol_set_names): Rename to...
+       (general_symbol_info::compute_and_set_names): ...this.
+       (general_symbol_info::natural_name): Update.
+       (general_symbol_info::search_name): Update.
+       (fixup_section): Update.
+       * symtab.h (struct general_symbol_info) <name>: Rename to...
+       <m_name>: ...this.
+       <compute_and_set_names>: Rename from...
+       (symbol_set_names): ...this.
+       (SYMBOL_SET_NAMES): Remove.
+       (struct symbol) <ctor>: Update.
+
+2019-12-26  Christian Biesinger  <cbiesinger@google.com>
+
+       * NEWS: Mention that multithreaded symbol loading is now on by
+       default.
+
+2019-12-26  Ruslan Kabatsayev  <b7.10110111@gmail.com>
+
+       * dwarf2read.c (is_valid_DW_AT_defaulted)
+       (is_valid_DW_AT_calling_convention_for_type)
+       (is_valid_DW_AT_calling_convention_for_subroutine): Fix printing
+       ULONGEST variables on x86-32.
+
+2019-12-21  George Barrett  <bob@bob131.so>
+
+       * solib-svr4.c (svr4_handle_solib_event): Add fallback link
+       namespace test for when the debug struct isn't available.
+
+2019-12-21  Eli Zaretskii  <eliz@gnu.org>
+
+       * top.c (print_gdb_configuration): Print "--with-xxhash" or
+       "--without-xxhash" according to HAVE_LIBXXHASH.
+
+2019-12-20  Weimin Pan  <weimin.pan@oracle.com>
+       * ctfread.c (ctf_file_key): Change type to objfile_key.
+       (struct ctf_context): Remove typedef.
+       (get_objfile_text_range): Use ANOFFSET to get text base.
+
+2019-12-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * dwarf2read.c (is_valid_DW_AT_calling_convention_for_subroutine):
+       New function.
+       (read_subroutine_type): Validate the parsed
+       DW_AT_calling_convention value before assigning it to a
+       subroutine's calling_convention attribute.
+       * gdbtypes.h (struct func_type) <calling_convention>: Use
+       an enum bitfield as its type, instead of plain unsigned.
+
+2019-12-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       PR gdb/25054
+       * infcall.c (call_function_by_hand_dummy): Update the argument-
+       passing section for call-by-value parameters.
+       (struct destructor_info): New struct.
+       (call_destructors): New auxiliary function.
+
+2019-12-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * gnu-v3-abi.c (enum definition_style): New enum type.
+       (get_def_style): New function.
+       (is_user_provided_def): New function.
+       (is_implicit_def): New function.
+       (is_copy_or_move_constructor_type): New function.
+       (is_copy_constructor_type): New function.
+       (is_move_constructor_type): New function.
+       (gnuv3_pass_by_reference): Collect language_pass_by_ref_info
+       for a given type.
+
+2019-12-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * language.h (struct language_pass_by_ref_info): New struct.
+       (struct language_defn)<la_pass_by_reference>: Change the signature
+       to return a language_pass_by_ref_info instead of an int.
+       (language_pass_by_reference): Ditto.
+       (default_pass_by_reference): Ditto.
+       Adjust the users listed below.
+       * arch-utils.c (default_return_in_first_hidden_param_p):
+       Update.
+       * cp-abi.c (cp_pass_by_reference): Update.
+       * cp-abi.h (cp_pass_by_reference): Update declaration.
+       (struct cp_abi_ops)<pass_by_reference>: Update.
+       * gnu-v3-abi.c (gnuv3_pass_by_reference): Update.
+       * infcall.c (call_function_by_hand_dummy): Update.
+       * language.c (language_pass_by_reference): Update.
+       (default_pass_by_reference): Update.
+       * tic6x-tdep.c (tic6x_return_value): Update.
+
+2019-12-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * dwarf2read.c (dwarf2_add_member_fn): Read the DW_AT_defaulted
+       and DW_AT_deleted attributes of a function.
+       (read_structure_type): Read the DW_AT_calling_convention attribute
+       of a type.
+       (is_valid_DW_AT_defaulted): New function.
+       (is_valid_DW_AT_calling_convention_for_type): New function.
+       * gdbtypes.h: Include dwarf2.h.
+       (struct fn_field)<defaulted>: New field to store the
+       DW_AT_defaulted attribute.
+       (struct fn_field)<is_deleted>: New field to store the
+       DW_AT_deleted attribute.
+       (struct cplus_struct_type)<calling_convention>: New field to store
+       the DW_AT_calling_convention attribute.
+       (TYPE_FN_FIELD_DEFAULTED): New macro.
+       (TYPE_FN_FIELD_DELETED): New macro.
+       (TYPE_CPLUS_CALLING_CONVENTION): New macro.
+       * gdbtypes.c (dump_fn_fieldlists): Update for the changes made
+       to the .h file.
+       (print_cplus_stuff): Likewise.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui.c (tui_show_source): Remove.
+       * tui/tui.h (tui_show_source): Don't declare.
+       * tui/tui-out.c (tui_ui_out::do_field_string): Don't call
+       tui_show_source.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-stack.h (tui_show_frame_info): Return bool.
+       * tui/tui-stack.c (tui_show_frame_info): Return bool.
+       * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
+       Update.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       PR tui/18932:
+       * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
+       Rename parameters.  Handle the not-from-stack-frame case.
+       (from_stack, from_source_symtab): New globals.
+       (tui_before_prompt, tui_normal_stop): Update.
+       (tui_context_changed, tui_symtab_changed): New functions.
+       (tui_attach_detach_observers): Attach new observers.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * source.c (struct current_source_location) <set, symtab, line>:
+       New methods.
+       <m_symtab, m_line>: Rename.  Now private.
+       (get_current_source_symtab_and_line)
+       (set_default_source_symtab_and_line)
+       (set_current_source_symtab_and_line)
+       (clear_current_source_symtab_and_line, select_source_symtab)
+       (info_source_command, print_source_lines_base)
+       (info_line_command, search_command_helper): Update.
+       * observable.h (current_source_symtab_and_line_changed): Declare
+       observable.
+       * observable.c (current_source_symtab_and_line_changed): Define
+       observable.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-hooks.c (tui_before_prompt): Change parameter to bool.
+       (tui_before_prompt, tui_normal_stop): Update.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.c
+       (tui_source_window_base::update_source_window_as_is): Don't call
+       set_current_source_symtab_and_line.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-stack.h (struct tui_locator_window) <set_locator_info>:
+       Take a symtab_and_line.
+       * tui/tui-stack.c (tui_locator_window::set_locator_info): Take a
+       symtab_and_line.
+       (tui_show_frame_info): Update.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-stack.c (tui_show_frame_info): Don't call
+       update_exec_info.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui.c (tui_enable): Call tui_display_main.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-disasm.c (tui_get_begin_asm_address): Use
+       get_current_source_symtab_and_line, and main_name.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui.c (tui_show_source): Update.
+       * tui/tui-winsource.h (tui_update_source_windows_with_line): Update.
+       * tui/tui-winsource.c (tui_update_source_windows_with_line): Take
+       a symtab_symbol_info, not a separate symtab and line.  Simplify.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.c (tui_update_source_windows_with_addr):
+       Simplify.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.h (struct tui_source_window_base)
+       <set_contents, update_source_window_as_is, update_source_window>:
+       Take a sal, not a separate symtab and tui_line_or_address.
+       * tui/tui-winsource.c (tui_source_window_base::update_source_window)
+       (tui_source_window_base::update_source_window_as_is): Take a sal,
+       not a separate symtab and tui_line_or_address.
+       (tui_update_source_windows_with_addr)
+       (tui_update_source_windows_with_line)
+       (tui_source_window_base::rerender)
+       (tui_source_window_base::refill): Update.
+       * tui/tui-source.h (struct tui_source_window) <set_contents>: Take
+       a sal, not a separate symtab and tui_line_or_address.
+       * tui/tui-source.c (tui_source_window::set_contents): Take a sal,
+       not a separate symtab and tui_line_or_address.
+       (tui_source_window::maybe_update): Update.
+       * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>: Take
+       a sal, not a separate symtab and tui_line_or_address.
+       * tui/tui-disasm.c (tui_disasm_window::set_contents): Take a sal,
+       not a separate symtab and tui_line_or_address.
+       (tui_disasm_window::do_scroll_vertical)
+       (tui_disasm_window::maybe_update): Update.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.c (tui_source_window_base::refill): Use
+       start_line_or_addr.
+       * tui/tui-source.c (tui_source_window::do_scroll_vertical): Use
+       start_line_or_addr.
+       * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
+       start_line_or_addr.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.h (struct tui_source_window_base)
+       <set_contents>: Return bool.
+       * tui/tui-winsource.c
+       (tui_source_window_base::update_source_window_as_is): Update.
+       * tui/tui-source.h (struct tui_source_window) <set_contents>:
+       Return bool.
+       * tui/tui-source.c (tui_source_window::set_contents): Return
+       bool.  Simplify.
+       * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
+       Return bool.
+       * tui/tui-disasm.c (tui_disasm_window::set_contents): Return
+       bool.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.c (tui_update_source_windows_with_addr)
+       (tui_update_source_windows_with_line): Call update_source_window.
+       * tui/tui-source.h (struct tui_source_window)
+       <show_symtab_source>: Don't declare.
+       * tui/tui-source.c (tui_source_window::show_symtab_source):
+       Remove.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
+       update_source_window directly.
+       * tui/tui-disasm.h (tui_show_disassem): Don't declare.
+       * tui/tui-disasm.c (tui_show_disassem): Remove.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.c
+       (tui_source_window_base::update_source_window_as_is): Don't switch focus.
+       * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.h (struct tui_source_window_base)
+       <maybe_update>: Remove line_no and addr parameters.
+       * tui/tui-stack.c (tui_show_frame_info): Set PC on sal.  Update.
+       * tui/tui-source.h (struct tui_source_window) <maybe_update>:
+       Update.
+       * tui/tui-source.c (tui_source_window::maybe_update): Remove
+       line_no and addr parameters.
+       * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
+       Update.
+       * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
+       line_no and addr parameters.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
+       (tui_source_window_base::update_breakpoint_info): Remove asserts.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
+       tui_show_disassem.
+       * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
+       declare.
+       * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui.h (tui_show_source): Remove parameters.
+       * tui/tui.c (tui_show_source): Remove parameters.
+       * tui/tui-out.c (tui_ui_out::do_field_string): Update.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui.c (tui_show_source): Update.
+       * tui/tui-winsource.c (tui_display_main): Update.
+       * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
+       to symtab.
+       * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
+       to symtab.
+       * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
+
+2019-12-20  Tom Tromey  <tom@tromey.com>
+
+       PR tui/23619:
+       * tui/tui-io.c (tui_rl_saved_prompt): Remove.
+       (tui_redisplay_readline): Use rl_display_prompt.
+       (tui_prep_terminal): Update.
+
+2019-12-19  Christian Biesinger  <cbiesinger@google.com>
+
+       * configure: Regenerate.
+       * configure.ac: Quote variable arguments of test.
+       * gdbsupport/common.m4: Likewise.
+
+2019-12-19  Christian Biesinger  <cbiesinger@google.com>
+
+       * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
+       2 to pow ().
+
+2019-12-19  Christian Biesinger  <cbiesinger@google.com>
+
+       * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
+       log10 to double to fix Solaris 11 with gcc 5.5.
+
+2019-12-19  Christian Biesinger  <cbiesinger@google.com>
+
+       * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
+       "sun" to "saddr_un".
+
+2019-12-19  Tom Tromey  <tromey@adacore.com>
+
+       * ui-out.h (enum class field_kind): Fix comment.
+
+2019-12-11  Tom Tromey  <tromey@adacore.com>
+
+       * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
+
+2019-12-18  Tom Tromey  <tromey@adacore.com>
+
+       PR build/25268:
+       * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
+       type on macOS.  Add comment.
+
+2019-12-18  Simon Marchi  <simon.marchi@efficios.com>
+
+       * c-lang.c (c_get_string, asm_language_defn): Remove space
+       before tab.
+
+2019-12-18  Tom Tromey  <tromey@adacore.com>
+
+       PR build/25250:
+       * ui-out.c (ui_out::vmessage): Update.
+       * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
+       Rename.
+       (string_field): Update.
+       (signed_field): Update.
+
+2019-12-18  Simon Marchi  <simon.marchi@efficios.com>
+
+       * top.c (print_gdb_configuration): Adjust indentation.
+
+2019-12-17  Christian Biesinger  <cbiesinger@google.com>
+
+       * bsd-kvm.c: Include gdbsupport/pathstuff.h.
+
+2019-12-17  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * tui/tui-layout.h (class tui_layout_base): Add virtual
+       destructor.
+
+2019-12-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * infcmd.c (prepare_one_step): Step over skipped inline functions.
+       * infrun.c (inline_frame_is_marked_for_skip): New helper function.
+       (process_event_stop_test): Keep stepping over skipped inline functions.
+
+2019-12-16  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * jit.c (struct gdb_block) <next>: Remove field.
+       (struct gdb_symtab) <~gdb_symtab>: Remove.
+       <blocks>: Change type to std::forward_list<gdb_block>.
+       (compare_block): Remove.
+       (jit_block_open_impl): Adjust to std::forward_list.  Place the new
+       block at the beginning, don't mind about sorting.
+       (finalize_symtab): Adjust to std::forward_list, sort the blocks list
+       before using it.
+
+2019-12-16  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * jit.c (struct gdb_block): Add constructor, initialize
+       real_block and next fields.
+       <name>: Change type to gdb::unique_xmalloc_ptr.
+       (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
+       (jit_block_open_impl): Allocate gdb_block with new.
+       (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
+
+2019-12-16  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * jit.c: Include forward_list.
+       (struct gdb_symtab) <next>: Remove field.
+       (struct gdb_object) <symtabs>: Change type to
+       std::forward_list<gdb_symtab>.
+       (jit_object_open_impl): Allocate gdb_object with new.
+       (jit_symtab_open_impl): Adjust to std::forward_list.
+       (finalize_symtab): Don't delete symtab.
+       (jit_object_close_impl):  Adjust to std::forward_list.  Free
+       gdb_object with delete.
+
+2019-12-16  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * jit.c (struct gdb_symtab): Add constructor, destructor,
+       initialize fields.
+       <linetable>: Change type to unique_xmalloc_ptr.
+       <file_name>: Change type to std::string.
+       (jit_symtab_open_impl): Allocate gdb_symtab with new.
+       (jit_symtab_line_mapping_add_impl): Adjust.
+       (finalize_symtab): Adjust, call delete on stab.
+
+2019-12-16  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
+
+2019-12-16  Tom Tromey  <tromey@adacore.com>
+
+       * windows-nat.c (windows_nat_target::attach): Update.
+       * remote.c (extended_remote_target::attach): Update.
+       * procfs.c (procfs_target::attach): Update.
+       * nto-procfs.c (nto_procfs_target::attach): Update.
+       (nto_procfs_target::create_inferior): Update.
+       * inf-ptrace.c (inf_ptrace_target::attach): Update.
+       * gnu-nat.c (gnu_nat_target::attach): Update.
+       (gnu_nat_target::detach): Update.
+       * darwin-nat.c (darwin_nat_target::attach): Update.
+       * corefile.c (get_exec_file): Constify result.  Remove extraneous
+       return.
+       * bsd-kvm.c (bsd_kvm_target_open): Update.
+       * gdbsupport/common-inferior.h (get_exec_file): Constify result.
+
 2019-12-16  Christian Biesinger  <cbiesinger@google.com>
 
        * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
This page took 0.034256 seconds and 4 git commands to generate.