X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=9709d0de33551fcb089229afb48ca853a84207e7;hb=d0922fcf02c6f60ca17cbddccd8b9c8f789eef8c;hp=63a1508c49ba3be9436c0798017f3e5ce05ffdf9;hpb=26abc753cd1eb1349f6fa053caab016c93ca5302;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 63a1508c49..d4b17abbdc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,1779 @@ +2019-12-20 Tankut Baris Aktemur + + * 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) : Use + an enum bitfield as its type, instead of plain unsigned. + +2019-12-20 Tankut Baris Aktemur + + 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 + + * 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 + + * language.h (struct language_pass_by_ref_info): New struct. + (struct language_defn): 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): 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 + + * 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): New field to store the + DW_AT_defaulted attribute. + (struct fn_field): New field to store the + DW_AT_deleted attribute. + (struct cplus_struct_type): 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 + + * 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 + + * 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 + + 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 + + * source.c (struct current_source_location) : + New methods. + : 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 + + * tui/tui-hooks.c (tui_before_prompt): Change parameter to bool. + (tui_before_prompt, tui_normal_stop): Update. + +2019-12-20 Tom Tromey + + * 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 + + * tui/tui-stack.h (struct tui_locator_window) : + 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 + + * tui/tui-stack.c (tui_show_frame_info): Don't call + update_exec_info. + +2019-12-20 Tom Tromey + + * tui/tui.c (tui_enable): Call tui_display_main. + +2019-12-20 Tom Tromey + + * tui/tui-disasm.c (tui_get_begin_asm_address): Use + get_current_source_symtab_and_line, and main_name. + +2019-12-20 Tom Tromey + + * 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 + + * tui/tui-winsource.c (tui_update_source_windows_with_addr): + Simplify. + +2019-12-20 Tom Tromey + + * tui/tui-winsource.h (struct tui_source_window_base) + : + 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) : 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) : 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 + + * 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 + + * tui/tui-winsource.h (struct tui_source_window_base) + : Return bool. + * tui/tui-winsource.c + (tui_source_window_base::update_source_window_as_is): Update. + * tui/tui-source.h (struct tui_source_window) : + Return bool. + * tui/tui-source.c (tui_source_window::set_contents): Return + bool. Simplify. + * tui/tui-disasm.h (struct tui_disasm_window) : + Return bool. + * tui/tui-disasm.c (tui_disasm_window::set_contents): Return + bool. + +2019-12-20 Tom Tromey + + * 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) + : Don't declare. + * tui/tui-source.c (tui_source_window::show_symtab_source): + Remove. + +2019-12-20 Tom Tromey + + * 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 + + * 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 + + * tui/tui-winsource.h (struct tui_source_window_base) + : 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) : + Update. + * tui/tui-source.c (tui_source_window::maybe_update): Remove + line_no and addr parameters. + * tui/tui-disasm.h (struct tui_disasm_window) : + Update. + * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove + line_no and addr parameters. + +2019-12-20 Tom Tromey + + * 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 + + * 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 + + * 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 + + * 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 + + 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 + + * configure: Regenerate. + * configure.ac: Quote variable arguments of test. + * gdbsupport/common.m4: Likewise. + +2019-12-19 Christian Biesinger + + * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of + 2 to pow (). + +2019-12-19 Christian Biesinger + + * 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 + + * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var + "sun" to "saddr_un". + +2019-12-19 Tom Tromey + + * ui-out.h (enum class field_kind): Fix comment. + +2019-12-11 Tom Tromey + + * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB. + +2019-12-18 Tom Tromey + + PR build/25268: + * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return + type on macOS. Add comment. + +2019-12-18 Simon Marchi + + * c-lang.c (c_get_string, asm_language_defn): Remove space + before tab. + +2019-12-18 Tom Tromey + + PR build/25250: + * ui-out.c (ui_out::vmessage): Update. + * ui-out.h (enum class field_kind) : + Rename. + (string_field): Update. + (signed_field): Update. + +2019-12-18 Simon Marchi + + * top.c (print_gdb_configuration): Adjust indentation. + +2019-12-17 Christian Biesinger + + * bsd-kvm.c: Include gdbsupport/pathstuff.h. + +2019-12-17 Simon Marchi + + * tui/tui-layout.h (class tui_layout_base): Add virtual + destructor. + +2019-12-16 Bernd Edlinger + + * 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 + + * jit.c (struct gdb_block) : Remove field. + (struct gdb_symtab) <~gdb_symtab>: Remove. + : Change type to std::forward_list. + (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 + + * jit.c (struct gdb_block): Add constructor, initialize + real_block and next fields. + : 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 + + * jit.c: Include forward_list. + (struct gdb_symtab) : Remove field. + (struct gdb_object) : Change type to + std::forward_list. + (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 + + * jit.c (struct gdb_symtab): Add constructor, destructor, + initialize fields. + : Change type to unique_xmalloc_ptr. + : 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 + + * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop. + +2019-12-16 Tom Tromey + + * 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 + + * gdbsupport/common-defs.h: Remove workaround for a gnulib bug + (we no longer need to include time.h before pathmax.h) + +2019-12-15 Christian Biesinger + + * ada-exp.y (write_ambiguous_var): Update. + * coffread.c (process_coff_symbol): Update. + * ctfread.c (ctf_add_enum_member_cb): Update. + (new_symbol): Update. + * dwarf2read.c (fixup_go_packaging): Update. + (new_symbol): Update. + * language.c (language_alloc_type_symbol): Update. + * mdebugread.c (new_symbol): Update. + * minsyms.c (minimal_symbol_reader::record_full): Update. + * psymtab.c (add_psymbol_to_bcache): Update. + * stabsread.c (define_symbol): Update. + (read_enum_type): Update. + * symtab.c (symbol_set_language): Make this a member function... + (general_symbol_info::set_language): ... here. + * symtab.h (struct general_symbol_info) : New function. + (SYMBOL_SET_LANGUAGE): Remove. + (symbol_set_language): Remove. + +2019-12-15 Christian Biesinger + + * ada-lang.c (ada_add_block_symbols): Update. + (ada_collect_symbol_completion_matches): Update. + * ax-gdb.c (gen_expr): Update. + * block.c (block_lookup_symbol): Update. + (block_lookup_symbol_primary): Update. + (block_find_symbol): Update. + * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update. + * dbxread.c (process_one_symbol): Update. + * dictionary.c (insert_symbol_hashed): Update. + (collate_pending_symbols_by_language): Update. + (mdict_add_symbol): Update. + * dwarf-index-write.c (write_psymbols): Update. + * dwarf2read.c (fixup_go_packaging): Update. + * findvar.c (read_var_value): Update. + * ft32-tdep.c (ft32_skip_prologue): Update. + * go-lang.c (go_symbol_package_name): Update. + * language.h (scoped_switch_to_sym_language_if_auto:: + scoped_switch_to_sym_language_if_auto): Update. + * linespec.c (find_method): Update. + (find_label_symbols_in_block): Update. + * mdebugread.c (parse_symbol): Update. + * mi/mi-cmd-stack.c (list_arg_or_local): Update. + * minsyms.c (add_minsym_to_demangled_hash_table): Update. + (minimal_symbol_reader::install): Update. + * moxie-tdep.c (moxie_skip_prologue): Update. + * parse.c (parse_exp_in_context): Update. + * psymtab.c (psymbol_name_matches): Update. + (match_partial_symbol): Update. + (lookup_partial_symbol): Update. + (psymbol_hash): Update. + (psymbol_compare): Update. + * python/py-framefilter.c (extract_sym): Update. + (py_print_single_arg): Update. + * stabsread.c (define_symbol): Update. + * stack.c (print_frame_arg): Update. + (find_frame_funname): Update. + (info_frame_command_core): Update. + * symfile.c (set_initial_language): Update. + * symtab.c (symbol_set_demangled_name): Update. + (symbol_get_demangled_name): Update. + (symbol_set_language): Update. + (symbol_find_demangled_name): Update. + (symbol_set_names): Update. + (general_symbol_info::natural_name): Update. + (general_symbol_info::demangled_name): Update. + (general_symbol_info::search_name): Update. + (symbol_matches_search_name): Update. + (eq_symbol_entry): Update. + (iterate_over_symbols): Update. + (completion_list_add_symbol): Update. + (completion_list_add_msymbol): Update. + (completion_list_add_fields): Update. + * symtab.h (struct general_symbol_info) : New function. + : Rename to... + : ...this. + (SYMBOL_LANGUAGE): Remove. + (MSYMBOL_LANGUAGE): Remove. + (struct symbol) : Update. + * xstormy16-tdep.c (xstormy16_skip_prologue): Update. + +2019-12-15 Christian Biesinger + + * ada-exp.y (write_ambiguous_var): Call symbol_set_language to + set the language of sym. + * language.c (language_alloc_type_symbol): Likewise. + +2019-12-14 Sergio Durigan Junior + + https://bugzilla.redhat.com/show_bug.cgi?id=1728147 + PR gdb/23613 + * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'. + * corelow.c: Include 'gdbsupport/pathstuff.h'. + (core_target_open): Use 'gdb_abspath'. + * gdbsupport/pathstuff.c (gdb_abspath): Guard against + 'current_directory == NULL' case. + * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and + explain what happens when 'current_directory' is NULL. + * go32-nat.c (go32_nat_target::wait): Check if + 'current_directory' is NULL before call to 'chdir'. + * source.c (add_path): Use 'gdb_abspath'. + * top.c: Include 'gdbsupport/pathstuff.h'. + (init_history): Use 'gdb_abspath'. + (set_history_filename): Likewise. + * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'. + (tfile_target_open): Use 'gdb_abspath'. + +2019-12-13 Tom Tromey + + * contrib/ari/gdb_ari.sh: Remove check for multiple calls to + warning or error. + +2019-12-13 Tom Tromey + + * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long". + +2019-12-13 Tom Tromey + + * contrib/ari/gdb_ari.sh: Handle -Wno- prefix. + +2019-12-13 Tom Tromey + + * contrib/ari/gdb_ari.sh (usage): Use GNU style. + +2019-12-13 Tom Tromey + + * gdbsupport/common-utils.c (string_printf, string_vprintf) + (string_vappendf): Add ARI comment. + +2019-12-13 Tom Tromey + + * contrib/ari/gdb_ari.sh: Remove "fix" call for + floatformat_to_double. + * target-float.c (host_float_ops::from_target): Add ARI + comment. + +2019-12-13 Tom Tromey + + * contrib/ari/gdb_ari.sh: Remove "fix" call for abort. + * utils.c (abort_with_message, dump_core, internal_vproblem): Add + ARI marker to abort. + * event-top.c (handle_sigsegv): Add ARI marker to abort. + +2019-12-13 Tom Tromey + + * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text. + +2019-12-13 Tom Tromey + + * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check. + +2019-12-13 Tom Tromey + + * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean" + checks. + +2019-12-13 Tom Tromey + + * gdbsupport/safe-iterator.h (class basic_safe_range) : No longer "const". + +2019-12-13 Simon Marchi + + * jit.c: Fix indentation, replace spaces with tabs where + applicable. + +2019-12-13 Jozef Lawrynowicz + + * configure.tgt: Match msp430-*-elf* targets when configuring GDB. + +2019-12-12 Tom Tromey + + * objfiles.h (struct objfile) : Now a + unique_ptr. + +2019-12-12 Tom Tromey + + * progspace.h (objfile_list): New typedef. + (class unwrapping_objfile_iterator) + (struct unwrapping_objfile_range): Newl + (struct program_space) : Change type. + : Change return type. + : Change type of "objfile" parameter. + : Now a list of shared_ptr. + * progspace.c (program_space::add_objfile): Change type of + "objfile". Update. + (program_space::remove_objfile): Update. + * objfiles.h (struct objfile) <~objfile>: Make public. + * objfiles.c (objfile::make): Update. + (objfile::unlink): Don't call delete. + +2019-12-12 Tom Tromey + + * symfile.c (symbol_file_clear): Update. + * progspace.h (struct program_space) : Declare + method. + * progspace.c (program_space::free_all_objfiles): New method. + * objfiles.h (free_all_objfiles): Don't declare. + * objfiles.c (free_all_objfiles): Move to program_space. + +2019-12-12 Tom Tromey + + * progspace.c (program_space::add_objfile) + (program_space::remove_objfile): Update. + (program_space::multi_objfile_p): Remove. + * objfiles.h (struct objfile) : Remove. + * objfiles.c (objfile::objfile): Update. + (put_objfile_before): Update. + (unlink_objfile): Update. + * progspace.h (object_files): Remove. + (struct program_space) : Remove. + : New member. + : Change type. + (objfiles): Change return type. + (objfiles_safe): Update. + (multi_objfile_p): Rewrite and inline. + (object_files): Remove macro. + +2019-12-12 Tom Tromey + + * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add + second constructor. + (basic_safe_range): New class. + +2019-12-12 Tom Tromey + + * progspace.c (program_space::multi_objfile_p): New method. + * printcmd.c (info_symbol_command): Update. + * maint.c (maintenance_translate_address): Update. + * objfiles.h (MULTI_OBJFILE_P): Remove. + * progspace.h (struct program_space) : New + method. + +2019-12-12 Tom Tromey + + * progspace.h (struct program_space) : Declare. + * progspace.c (program_space::remove_objfile): New method. + * objfiles.c (unlink_objfile): Remove. + (objfile::unlink): Call remove_objfile. + (objfile): Don't call unlink_objfile. + +2019-12-12 Tom Tromey + + * progspace.h (struct program_space) : Declare + method. + * progspace.c (program_space::add_objfile): New method. + * objfiles.c (~objfile): Don't unlink objfile. + (put_objfile_before): Remove. + (add_separate_debug_objfile): Don't call put_objfile_before. + (objfile::make): Call add_objfile. Set new_objfiles_available on + the per-program-space data. + +2019-12-12 Tom Tromey + + * symfile.c (syms_from_objfile_1): Use objfile_up. + (syms_from_objfile_1, remove_symbol_file_command): Call unlink + method. + (reread_symbols): Use objfile_up. + * solib.c (update_solib_list, reload_shared_libraries_1): Call + unlink method. + * objfiles.h (struct objfile) <~objfile>: Now private. + : New method. + (struct objfile_deleter): New. + (objfile_up): New typedef. + * objfiles.c (objfile::unlink): New method. + (free_objfile_separate_debug, free_all_objfiles) + (objfile_purge_solibs): Use it. + * jit.c (jit_unregister_code): Remove. + (jit_inferior_exit_hook, jit_event_handler): Call unlink on + objfile. + * compile/compile-object-run.c (do_module_cleanup): Call unlink on + objfile. + * compile/compile-object-load.c (compile_object_load): Use + objfile_up. + +2019-12-12 Tom Tromey + + * symfile.c (symbol_file_add_with_addrs): Pass "parent" to + objfile::make. + * objfiles.h (struct objjfile) : No longer inline. + (add_separate_debug_objfile): Don't declare. + * objfiles.c (add_separate_debug_objfile): Now static. + (objfile::make): Move from objfiles.h. Call + add_separate_debug_objfile. Add "parent" parameter. + +2019-12-12 Tom Tromey + + * symfile.c (symbol_file_add_with_addrs): Use objfile::make. + * objfiles.h (struct objfile): Make constructor private. + : New static method. + * jit.c (jit_object_close_impl): Update. + +2019-12-12 Simon Marchi + + * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with + gdb::byte_vector. + +2019-12-12 Tom Tromey + + * xml-support.c (xml_fetch_content_from_file): Don't call + malloc_failure. + * utils.h (class gdb_argv): Remove malloc_failure comment. + * utils.c (gdb_argv::reset): Don't call malloc_failure. + +2019-12-12 Tom Tromey + + * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o. + (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h. + (ALLDEPFILES): Add riscv-ravenscar-thread.c. + * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o. + * riscv-ravenscar-thread.c: New file. + * riscv-ravenscar-thread.h: New file. + * riscv-tdep.c (riscv_gdbarch_init): Call + register_riscv_ravenscar_ops. + +2019-12-12 Tom Tromey + + * gdbsupport/thread-pool.c (set_thread_name): Use + ATTRIBUTE_UNUSED. + +2019-12-12 Luis Machado + + * gdbsupport/safe-strerror.c: Don't include diagnostics.h. + (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics + macros. + +2019-12-11 Tom Tromey + + * tui/tui-win.c (tui_set_win_height_command): Call + tui_adjust_window_height. + (tui_adjust_win_heights, new_height_ok): Remove. + * tui/tui-layout.h (tui_adjust_window_height): Declare. + * tui/tui-layout.c (tui_adjust_window_height): New function. + +2019-12-11 Tom Tromey + + * tui/tui-win.c (tui_resize_all): Remove code, call + tui_apply_current_layout. + +2019-12-11 Tom Tromey + + * tui/tui-layout.h (tui_apply_current_layout): Declare. + * tui/tui-layout.c (standard_layouts, applied_layout): New + globals. + (tui_apply_current_layout): New function. + (show_layout): Set applied_layout. Call + tui_apply_current_layout. + (show_source_command, show_disasm_command) + (show_source_disasm_command, show_data) + (show_source_or_disasm_and_command): Remove. + (initialize_layouts): New function. + (_initialize_tui_layout): Call initialize_layouts. + +2019-12-11 Tom Tromey + + * tui/tui-layout.h (class tui_layout_base) + (class tui_layout_window, class tui_layout_split): New. + * tui/tui-layout.c (tui_get_window_by_name) + (tui_layout_window::clone, tui_layout_window::apply) + (tui_layout_window::get_sizes, tui_layout_window::add_split) + (tui_layout_split::add_window, tui_layout_split::clone) + (tui_layout_split::get_sizes) + (tui_layout_split::set_weights_from_heights) + (tui_layout_split::adjust_size, tui_layout_split::apply): New + functions. + (tui_layout_split::add_split, tui_layout_split::add_split) + (tui_layout_split::set_weights_from_heights) + (tui_layout_split::set_weights_from_heights): New functions. + +2019-12-11 Tom Tromey + + * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update. + * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update. + * tui/tui-layout.c (tui_gen_win_info::resize): Update. + * tui/tui-data.h (struct tui_point): Remove. + (struct tui_gen_win_info) : Remove. + : New fields. + * tui/tui-command.c (tui_cmd_window::resize): Update. + +2019-12-11 Tom Tromey + + * tui/tui-stack.h (struct tui_locator_window) : + Implement. + * tui/tui-regs.h (struct tui_data_item_window) : + Implement. + * tui/tui-data.h (struct tui_gen_win_info) : New + method. + (struct tui_win_info) : Implement. + +2019-12-11 Tom Tromey + + * tui/tui-data.h (struct tui_gen_win_info) : New method. + (struct tui_win_info) : Update. + +2019-12-11 Tom Tromey + + * tui/tui-stack.h (struct tui_locator_window) : New + method. + * tui/tui-regs.h (struct tui_data_item_window) : New + method. + * tui/tui-data.h (struct tui_gen_win_info) : New + method. + (struct tui_win_info) : Now override. + +2019-12-11 Joel Brobecker + + * NEWS: Create a new section for the next release branch. + Rename the section of the current branch, now that it has + been cut. + +2019-12-11 Joel Brobecker + + GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0): + * version.in: Bump version to 10.0.50.DATE-git. + +2019-12-11 Tom Tromey + + PR build/25268: + * gdbsupport/thread-pool.c (set_thread_name): New function. + (thread_pool::set_thread_count): Don't call pthread_setname_np. + (thread_pool::thread_function): Call set_thread_name. + +2019-12-11 Tom Tromey + + * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of + bfd_get_signed_8. + +2019-12-11 Philippe Waroquiers + + * NEWS: Document -raw-values option and the related setting commands. + * printcmd.c (print_command_parse_format): Do not set opts->raw off, + only set it on when /r is given. + * valprint.c (value_print_option_defs): New element raw-values. + * Makefile.in: Add the new file. + +2019-12-10 Christian Biesinger + + * gdbsupport/safe-strerror.c: Supress the unused function warning + for select_strerror_r. + +2019-12-10 Christian Biesinger + + * config.in: Regenerate. + * configure: Regenerate. + * gdbsupport/agent.c (gdb_connect_sync_socket): Call + safe_strerror instead of strerror. + * gdbsupport/common.m4: Don't check for strerror. + * gdbsupport/safe-strerror.c: Support both the glibc version + of strerror_r and the XSI version. + +2019-12-10 Tom Tromey + + * ada-typeprint.c (print_choices): Use a single "?". + (print_variant_part): Print "?" if the discriminant name + is not known. + +2019-12-10 George Barrett + + Fix scripted probe breakpoints. + * breakpoint.c (tracepoint_probe_breakpoint_ops): Move + declaration forward. + (breakpoint_ops_for_event_location_type) + (breakpoint_ops_for_event_location): Add function definitions. + (break_command_1, trace_command): Use + breakpoint_ops_for_event_location. + * breakpoint.h (breakpoint_ops_for_event_location): Add function + declarations. + * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use + breakpoint_ops_for_event_location. + * python/py-breakpoint.c (bppy_init): Use + breakpoint_ops_for_event_location. + +2019-12-09 Tankut Baris Aktemur + + * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS + when ranking an lvalue argument for an rvalue parameter. + +2019-12-08 Wataru Ashihara + + * darwin-nat.c (darwin_nat_target::create_inferior): Fix + template argument for scoped_restore_tmpl from bool to int. + +2019-12-07 Keith Seitz + + * build-id.c (build_id_bfd_get): Permit bfd_core, too. + (build_id_to_debug_bfd): Make static, rewriting to use + build_id_to_bfd_suffix. + (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd, + adding `suffix' parameter. Append SUFFIX to file names + when searching for matching files. + (build_id_to_debug_bfd): Use build_id_to_bfd_suffix. + (build_id_to_exec_bfd): Likewise. + * build-id.h (build_id_to_debug_bfd): Clarify that function + searches for BFD of debug info file. + (build_id_to_exec_bfd): Declare. + * corelow.c: Include build-id.h. + (locate_exec_from_corefile_build_id): New function. + (core_target_open): If no executable BFD is found, + search for a core file BFD using build-id. + +2019-12-06 Christian Biesinger + + * bcache.c: Put in namespace gdb. + * bcache.h: Likewise. + * gdbtypes.c (check_types_worklist): Update. + (types_deeply_equal): Update. + * macrotab.c (struct macro_table) : Update. + (new_macro_table): Update. + * macrotab.h (struct bcache): Put this forward declaration + inside namespace gdb. + (new_macro_table): Update. + * objfiles.h (struct objfile_per_bfd_storage) : + Update. + : Update. + * psymtab.h: (psymtab_storage) : Update. + +2019-12-06 Tom de Vries + + PR symtab/24971 + * block.c (best_symbol, better_symbol): New function. + (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over + decl. + +2019-12-06 Tankut Baris Aktemur + + * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value. + * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS + for ranking see-through reference cases. + +2019-12-06 Philippe Waroquiers + * stack.c (faas_command): Check a command is provided. + * thread.c (taas_command, tfaas_command): Likewise. + +2019-12-05 Philippe Waroquiers + * inferior.c (prune_inferiors): Only call delete_inferior, + Do not modify the inferior list. + +2019-12-05 Simon Marchi + + * c-exp.y: Update calls to lookup_typename, + lookup_signed_typename and lookup_unsigned_typename. + * c-lang.c (evaluate_subexp_c): Likewise. + * cp-namespace.c (cp_lookup_symbol_imports_or_template): + Likewise. + * eval.c (binop_promote): Likewise. + * gdbtypes.c (lookup_typename): Remove gdbarch parameter. + (lookup_unsigned_typename): Likewise. + (lookup_signed_typename): Likewise. + * gdbtypes.h (lookup_unsigned_typename): Likewise. + (lookup_signed_typename): Likewise. + (lookup_typename): Likewise. + * guile/scm-type.c (tyscm_lookup_typename): Update calls to + lookup_typename, lookup_signed_typename, + lookup_unsigned_typename. + * m2-exp.y: Likewise. + * printcmd.c (printf_wide_c_string): Likewise. + (ui_printf): Likewise. + * python/py-type.c (typy_lookup_typename): Likewise. + * python/py-xmethods.c (python_xmethod_worker::invoke): + Likewise. + * rust-exp.y: Likewise. + +2019-12-04 Christian Biesinger + + * configure.nat (obsd64): Add missing files x86-nat.o and + nat/x86-dregs.o. + +2019-12-04 Tom Tromey + + * valprint.c (val_print_string): Use metadata_style. + * go-valprint.c (print_go_string): Use metadata style. + * p-valprint.c (pascal_object_print_static_field): Use metadata + style. + * cp-valprint.c (cp_print_static_field): Use metadata style. + +2019-12-04 Andrew Burgess + Chris January + + * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New + tokens. + (typebase): New patterns for complex, single/double precision, and + single/double complex. + (f77_keywords): Change token for complex keyword, and add single, + double, and precision keywords. + +2019-12-04 Simon Marchi + + * avr-tdep.c (_initialize_avr_tdep): Improve help of command + "info io_registers". + +2019-12-04 Simon Marchi + + * regcache.c (cooked_read_test): Initialize thread list of + mock_inferior. + +2019-12-04 Simon Marchi + + * aarch64-linux-tdep.c: Remove includes. + +2019-12-04 Simon Marchi + + * aarch64-tdep.c: Remove includes. + +2019-12-04 Simon Marchi + + * filtered-iterator.h (filtered_iterator) : Compare wrapped iterators, not wrapped pointers. + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + unittests/filtered_iterator-selftests.c. + * unittests/filtered_iterator-selftests.c: New file. + +2019-12-04 Tom Tromey + + * gdbtypes.c (create_range_type): Inherit endianity + from base type. + +2019-12-04 Tom Tromey + + * ada-lang.c (decode_constrained_packed_array) + (ada_value_assign, value_assign_to_component): Update. + * dwarf2loc.c (rw_pieced_value, access_memory) + (dwarf2_compile_expr_to_ax): Update. + * dwarf2read.c (dwarf2_add_field): Update. + * eval.c (evaluate_subexp_standard): Update. + * gdbarch.c, gdbarch.h: Rebuild. + * gdbarch.sh (bits_big_endian): Remove. + * gdbtypes.h (union field_location): Update comment. + * target-descriptions.c (make_gdb_type): Update. + * valarith.c (value_bit_index): Update. + * value.c (struct value) : Update comment. + (unpack_bits_as_long, modify_field): Update. + * value.h (value_bitpos): Update comment. + +2019-12-04 Tom Tromey + + * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown + endian-ness. + +2019-12-04 Tom Tromey + + * dwarf2read.c (dwarf2_init_float_type) + (dwarf2_init_complex_target_type): Add byte_order parameter. + (read_base_type): Compute byte order earlier. + * gdbtypes.c (init_float_type): Add byte_order parameter. + * gdbtypes.h (init_float_type): Add byte_order parameter. + +2019-12-04 Tom Tromey + + * unittests/tui-selftests.c: Conditionally include tui-winsource.h. + +2019-12-04 Tom Tromey + + * dwarf2read.c (process_structure_scope): Initialize + "discr_offset". + +2019-12-04 Andrew Burgess + + * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and + add it into the search spec. + (parse_max_results_option): New function. + (mi_info_functions_or_variables): Parse -max-results flag and pass + it to mi_symbol_info. + (mi_cmd_symbol_info_modules): Likewise. + (mi_cmd_symbol_info_types): Likewise. + * symtab.c (global_symbol_searcher::add_matching_symbols): Change + return type to bool, change result container into a set, and don't + add new results if we have enough already. + (global_symbol_searcher::add_matching_msymbols): Change return + type to bool, and don't add new results if we have enough already. + (sort_search_symbols_remove_dups): Delete. + (global_symbol_searcher::search): Early exit from search loop when + we have enough results. Use a std::set to collect the results + from calling add_matching_symbols. + * symtab.h (global_symbol_searcher) : New + member function. + (global_symbol_searcher) : New member + variable. + (global_symbol_searcher) : Update header + comment and change return type to bool. + (global_symbol_searcher) : Update header + comment and change return type to bool. + +2019-12-04 Andrew Burgess + + * symtab.c (symbol_search::compare_search_syms): Update header + comment. + (global_symbol_searcher::is_suitable_msymbol): New function. + (global_symbol_searcher::expand_symtabs): New function. + (global_symbol_searcher::add_matching_symbols): New function. + (global_symbol_searcher::add_matching_msymbols): New function. + (global_symbol_searcher::search): Move most of the content + into the new functions above, and call them as needed. + * symtab.h (global_symbol_searcher) : New member + function. + (global_symbol_searcher) : New member + function. + (global_symbol_searcher) : New member + function. + (global_symbol_searcher) : New member + function. + +2019-12-04 Andrew Burgess + + * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and + -symbol-info-module-variables entries. + * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare. + (mi_cmd_symbol_info_module_variables): Declare. + * mi/mi-symbol-cmds.c + (module_symbol_search_iterator): New typedef. + (output_module_symbols_in_single_module_and_file): New function. + (output_module_symbols_in_single_module): New function. + (mi_info_module_functions_or_variables): New function. + (mi_cmd_symbol_info_module_functions): New function. + (mi_cmd_symbol_info_module_variables): New function. + * NEWS: Mention new MI command. + +2019-12-03 Christian Biesinger + + * bcache.c (hash): Remove. + (hash_continue): Remove. + * bcache.h (hash): Remove. + (hash_continue): Remove. + (struct bcache) : Update. + * psymtab.c (psymbol_hash): Update. + * stabsread.c (hashname): Update. + * utils.h (fast_hash): Add an argument for a start value, + defaulting to zero. + +2019-12-03 Philippe Waroquiers + * symtab.c (symbol_cache_clear_slot): Move close to cleared type. + (destroy_block_symbol_cache): New function. + (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache. + (resize_symbol_cache): Likewise. + +2019-12-02 Tom Tromey + + * unittests/tui-selftests.c (run_tests): Make conditional. + (_initialize_tui_selftest): Make conditional. + +2019-12-02 Christian Biesinger + + * aix-thread.c (debug_aix_thread): Change type to bool. + +2019-12-02 Luis Machado + + * infrun.c (follow_fork_inferior): Remove outdated FIXME comment. + +2019-12-01 Andrew Burgess + + * dwarf2read.c (read_tag_string_type): Read the fields required to + make a dynamic string, and possibly create a dynamic range for the + string. + (attr_to_dynamic_prop): Setup is_reference based on the type of + attribute being processed. + * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING. + (resolve_dynamic_array): Rename to... + (resolve_dynamic_array_or_string): ...this, update header comment, + and accept TYPE_CODE_STRING. + (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING. + +2019-12-01 Andrew Burgess + + * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most + of its implementation from... + (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls + the new function. + +2019-12-01 Andrew Burgess + + * dwarf2read.c (read_subrange_type): Read bit and byte stride and + create a range with stride where appropriate. + * f-valprint.c: Include 'gdbarch.h'. + (f77_print_array_1): Take the stride into account when walking the + array. Also convert the stride into addressable units. + * gdbtypes.c (create_range_type): Initialise the stride to + constant zero. + (create_range_type_with_stride): New function, initialise the + range as normal, and then setup the stride. + (has_static_range): Include the stride here. Also change the + return type to bool. + (create_array_type_with_stride): Consider the range stride if the + array isn't given its own stride. + (resolve_dynamic_range): Resolve the stride if needed. + * gdbtypes.h (struct range_bounds) : New member variable. + (struct range_bounds) : New member variable. + (TYPE_BIT_STRIDE): Define. + (TYPE_ARRAY_BIT_STRIDE): Define. + (create_range_type_with_stride): Declare. + * valarith.c (value_subscripted_rvalue): Take range stride into + account when walking the array. + +2019-12-01 Tom Tromey + + * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI + specially. + +2019-12-01 Tom Tromey + + * tui/tui-winsource.c (tui_copy_source_line): Don't advance past + \0. + * unittests/tui-selftests.c: New file. + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c. + +2019-12-01 Tom Tromey + + * tui/tui.c (tui_enable): Call tui_update_variables earlier. + +2019-12-01 Tom Tromey + + * NEWS: Document new settings. + * tui/tui-wingeneral.c (box_win): Apply appropriate border style. + * tui/tui-win.c (_initialize_tui_win): Add border style + observers. + * tui/tui-io.h (tui_apply_style): Declare. + * tui/tui-io.c (tui_apply_style): Rename from apply_style. No + longer static. + (apply_ansi_escape, tui_set_reverse_mode): Update. + * cli/cli-style.h (class cli_style_option) : + Add "skip_intensity" parameter. + : New member. + : Declare. + (tui_border_style, tui_active_border_style): Declare. + * cli/cli-style.c (tui_border_style, tui_active_border_style): New + globals. + (cli_style_option): Initialize "changed". + (cli_style_option::do_set_value): New function. + (cli_style_option::add_setshow_commands): Add "skip_intensity" + parameter. Update. + (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter. + (_initialize_cli_style): Update. Create TUI border style + commands. + +2019-12-01 Tom Tromey + + * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits" + parameter. + * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits" + parameter. + * tui/tui-win.h (compact_source): Declare. + * tui/tui-win.c (compact_source): New global. + (tui_set_compact_source, tui_show_compact_source): New functions. + (_initialize_tui_win): Add "compact-source" setting. + * tui/tui-source.c (tui_source_window::set_contents): Handle + compact_source setting. + * tui/tui-disasm.c (tui_disasm_window::set_contents): Update. + * NEWS: Document new setting. + +2019-11-30 Tom Tromey + + * dwarf2read.c (dwarf2_add_field): Include field offset when + computing variant part length. + +2019-11-30 Philippe Waroquiers + * NEWS: Mention define-prefix. Tell that command names can now + contain a . character. + +2019-11-30 Philippe Waroquiers + + * command.h (valid_cmd_char_p): Declare. + * cli/cli-decode.c (valid_cmd_char_p): New function factorizing + the check of valid command char. + (find_command_name_length, valid_user_defined_cmd_name_p): Use + valid_cmd_char_p. + * cli/cli-script.c (validate_comname): Likewise. + * completer.c (gdb_completer_command_word_break_characters): + Do not remove . from the word break char, update comments. + (complete_line_internal_1): Use valid_cmd_char_p. + * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise. + * python/py-cmd.c (gdbpy_parse_command_name): Likewise. + +2019-11-30 Philippe Waroquiers + + * cli/cli-script.c (do_define_command): Ensure a redefined + prefix command is kept as a prefix command. + (define_prefix_command): New function. + (show_user_1): Report user defined prefixes. + (_initialize_cli_script): Create the new 'define-prefix' command. + Add completers for 'define' and 'document'. + * top.c (execute_command): If command is a user-defined prefix only + command, report the list of commands for this prefix command. + +2019-11-29 Tankut Baris Aktemur + + * valops.c (find_oload_champ): Improve debug output. + +2019-11-29 Tankut Baris Aktemur + + * valops.c (find_oload_champ): Print part of debug messages + before the badness vector is std::move'd. + +2019-11-28 Tom Tromey + + * value.c (creal_internal_fn): Fix comment. + +2019-11-28 Tom Tromey + + * gdbtypes.h (struct range_bounds) : Now unsigned. + +2019-11-28 Tom Tromey + + * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't + declare. + +2019-11-28 Mihails Strasuns + + * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the + debug output. + * jit.c (jit_unregister_code): Add debug print to match + `jit_register_code`. + +2019-11-27 Christian Biesinger + + * NEWS: Mention the new multithreaded symbol loading. + +2019-11-27 Christian Biesinger + + * maint.c (n_worker_threads): Default to 0. + (worker_threads_disabled): New function. + * maint.h (worker_threads_disabled): New function. + * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names + here if worker_threads_disabled () is true. + (minimal_symbol_reader::install): Skip all threading if + worker_threads_disabled () is true. + +2019-11-27 Christian Biesinger + + * minsyms.c (add_minsym_to_hash_table): Use a previously computed + hash code if possible. + (add_minsym_to_demangled_hash_table): Likewise. + (minimal_symbol_reader::install): Compute the hash codes for msymbol + on the background thread. + * symtab.h (struct minimal_symbol) : + Add these fields. + +2019-11-27 Christian Biesinger + + * minsyms.c (minimal_symbol_reader::install): Also compute the hash + of the mangled name on the background thread. + * symtab.c (symbol_set_names): Allow passing in the hash of the + linkage_name. + * symtab.h (symbol_set_names): Likewise. + +2019-11-27 Kevin Buettner + + * dwarf2read.c (inherit_abstract_dies): Ensure that delayed + physnames are computed for inherited DIEs. + +2019-11-27 Tom Tromey + + * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary + backslashes. + * cp-support.c: Remove unnecessary backslashes. + +2019-11-27 Christian Biesinger + + * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME + with sym->set_linkage_name. + * coffread.c (coff_read_enum_type): Likewise. + * mdebugread.c (parse_symbol): Likewise. + * stabsread.c (patch_block_stabs): Likewise. + (define_symbol): Likewise. + (read_enum_type): Likewise. + (common_block_end): Likewise. + * symtab.h (struct general_symbol_info) : New + function. + (SYMBOL_SET_LINKAGE_NAME): Remove. + * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME + with sym->set_linkage_name. + +2019-11-27 Andrew Burgess + + * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry. + * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare. + * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function. + * NEWS: Mention new MI command. + +2019-11-27 Andrew Burgess + + * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions', + '-symbol-info-types', and '-symbol-info-variables'. + * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare. + (mi_cmd_symbol_info_types): Declare. + (mi_cmd_symbol_info_variables): Declare. + * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes. + (output_debug_symbol): New function. + (output_nondebug_symbol): New function. + (mi_symbol_info): New function. + (mi_info_functions_or_variables): New function. + (mi_cmd_symbol_info_functions): New function. + (mi_cmd_symbol_info_types): New function. + (mi_cmd_symbol_info_variables): New function. + * NEWS: Mention new commands. + +2019-11-27 Andrew Burgess + + * symtab.c (symbol_to_info_string): New function, most content + moved from print_symbol_info, but updated to return a std::string. + (print_symbol_info): Update to use symbol_to_info_string and print + returned string. + * symtab.h (symbol_to_info_string): Declare new function. + +2019-11-27 Andrew Burgess + + * python/python.c (gdbpy_rbreak): Convert to using + global_symbol_searcher. + * symtab.c (file_matches): Convert return type to bool, change + file list to std::vector, update header comment. + (search_symbols): Rename to... + (global_symbol_searcher::search): ...this and update now its + a member function of global_symbol_searcher. Take account of the + changes to file_matches. + (symtab_symbol_info): Convert to using global_symbol_searcher. + (rbreak_command): Likewise. + (search_module_symbols): Likewise. + * symtab.h (enum symbol_search): Update comment. + (search_symbols): Remove declaration. + (class global_symbol_searcher): New class. + +2019-11-26 Tom Tromey + + * cp-support.c (_initialize_cp_support): Conditionally initialize + gdb_demangle_attempt_core_dump. + +2019-11-26 Tom Tromey + + * python/py-function.c (fnpy_init): Update. + * value.h (add_internal_function): Adjust declaration. + * value.c (function_destroyer): Remove. + (do_add_internal_function): Don't set destroyer or copy name. + (add_internal_function): Take unique_xmalloc_ptr for name. + Set name_allocated. + * python/py-cmd.c (cmdpy_destroyer): Don't free "name". + (cmdpy_init): Set name_allocated. + * cli/cli-decode.h (struct cmd_list_element) : New + member. + (~cmd_list_element): Free "name" if needed. + +2019-11-26 Tom Tromey + + * value.h (add_internal_function): Add new overload. Move + documentation from value.h. + * value.c (do_add_internal_function): New function. + (add_internal_function): Use it. Add new overload. + (function_destroyer): Don't free doc. + * python/py-function.c (fnpy_init): Update. + +2019-11-26 Tom Tromey + + * python/py-cmd.c (cmdpy_destroyer): Don't free "doc". + (cmdpy_init): Set "doc_allocated". + +2019-11-26 Tom Tromey + + * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set + name of worker thread. + * gdbsupport/common.m4 (GDB_AC_COMMON): Check for + pthread_setname_np. + * configure, config.in: Rebuild. + +2019-11-26 Tom Tromey + + * python/python.c (class gdbpy_gil): New. + (struct gdbpy_event): Add constructor, destructor, operator(). + (gdbpy_post_event): Use run_on_main_thread. + (gdbpy_initialize_events): Remove. + (do_start_initialization): Update. + +2019-11-26 Tom Tromey + + * NEWS: Add entry. + * maint.c (_initialize_maint_cmds): Add "worker-threads" maint + commands. Call update_thread_pool_size. + (update_thread_pool_size, maintenance_set_worker_threads): New + functions. + (n_worker_threads): New global. + +2019-11-26 Christian Biesinger + Tom Tromey + + * minsyms.c (minimal_symbol_reader::install): Use + parallel_for_each. + * gdbsupport/parallel-for.h: New file. + * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h. + +2019-11-26 Christian Biesinger + Tom Tromey + + * gdbsupport/thread-pool.h: New file. + * gdbsupport/thread-pool.c: New file. + * Makefile.in (COMMON_SFILES): Add thread-pool.c. + (HFILES_NO_SRCDIR): Add thread-pool.h. + +2019-11-26 Tom Tromey + + * event-top.h (thread_local_segv_handler): Declare. + * event-top.c (thread_local_segv_handler): New global. + (install_handle_sigsegv, handle_sigsegv): New functions. + (async_init_signals): Install SIGSEGV handler. + * cp-support.c (gdb_demangle_jmp_buf): Change type. Now + thread-local. + (report_failed_demangle): New function. + (gdb_demangle): Make core_dump_allowed atomic. Remove signal + handler-setting code, instead use segv_handler. Run warning code + on main thread. + +2019-11-26 Tom Tromey + + * run-on-main-thread.c: New file. + * run-on-main-thread.h: New file. + * unittests/main-thread-selftests.c: New file. + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + main-thread-selftests.c. + (HFILES_NO_SRCDIR): Add run-on-main-thread.h. + (COMMON_SFILES): Add run-on-main-thread.c. + +2019-11-26 Tom Tromey + + * main.c (setup_alternate_signal_stack): Remove. + (captured_main_1): Use gdb::alternate_signal_stack. + * gdbsupport/alt-stack.h: New file. + +2019-11-26 Tom Tromey + + * gdbsupport/signals-state-save-restore.c (original_signal_mask): + Remove comment. + (save_original_signals_state, restore_original_signals_state): Use + gdb_sigmask. + * linux-nat.c (block_child_signals, restore_child_signals_mask) + (_initialize_linux_nat): Use gdb_sigmask. + * guile/guile.c (_initialize_guile): Use block_signals. + * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h. + * gdbsupport/gdb-sigmask.h: New file. + * event-top.c (async_sigtstp_handler): Use gdb_sigmask. + * cp-support.c (gdb_demangle): Use gdb_sigmask. + * gdbsupport/common.m4 (GDB_AC_COMMON): Check for + pthread_sigmask. + * configure, config.in: Rebuild. + * gdbsupport/block-signals.h: New file. + +2019-11-26 Tom Tromey + + * acinclude.m4: Include ax_pthread.m4. + * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables. + (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS. + (CLIBS): Use PTHREAD_LIBS. + (aclocal_m4_deps): Add ax_pthread.m4. + * config.in, configure: Rebuild. + * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread. + +2019-11-26 Tom Tromey + + * symtab.h (struct minimal_symbol) : New member. + * minsyms.c (minimal_symbol_reader::record_full): Copy name. + Don't call symbol_set_names. + (minimal_symbol_reader::install): Call symbol_set_names. + +2019-11-26 Philippe Waroquiers + + * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after + restore_active_ext_lang, as GIL is needed for (indirectly) + called PyOS_InterruptOccurred. + +2019-11-26 Simon Marchi + + * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with + definition. + +2019-11-26 Simon Marchi + + * remote-sim.c (simulator_command): Make static, remove + declaration. + +2019-11-26 Simon Marchi + + * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make + static. + * unittests/basic_string_view/capacity/1.cc (test01): Likewise. + * unittests/basic_string_view/cons/char/1.cc (test01): Likewise. + (main): Likewise. + * unittests/basic_string_view/cons/char/2.cc (test03): Likewise. + (main): Likewise. + * unittests/basic_string_view/cons/char/3.cc (test05): Likewise. + (main): Likewise. + * unittests/basic_string_view/element_access/char/1.cc (test01): + Likewise. + (main): Likewise. + * unittests/basic_string_view/element_access/char/empty.cc (main): + Likewise. + * unittests/basic_string_view/element_access/char/front_back.cc + (test01): Likewise. + (main): Likewise. + * unittests/basic_string_view/inserters/char/2.cc (test05): + Likewise. + (main): Likewise. + * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc + (test01): Likewise. + (main): Likewise. + * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc + (test01): Likewise. + (main): Likewise. + * unittests/basic_string_view/modifiers/swap/char/1.cc (test01): + Likewise. + * unittests/basic_string_view/operations/compare/char/1.cc + (test01): Likewise. + (main): Likewise. + * unittests/basic_string_view/operations/compare/char/13650.cc + (test01): Likewise. + * unittests/basic_string_view/operations/copy/char/1.cc (test01): + Likewise. + (main): Likewise. + * unittests/basic_string_view/operations/data/char/1.cc (test01): + Likewise. + (main): Likewise. + * unittests/basic_string_view/operations/find/char/1.cc (test01): + Likewise. + (main): Likewise. + * unittests/basic_string_view/operations/find/char/2.cc (test02): + Likewise. + (main): Likewise. + * unittests/basic_string_view/operations/find/char/3.cc (test03): + Likewise. + (main): Likewise. + * unittests/basic_string_view/operations/find/char/4.cc (main): + Likewise. + * unittests/basic_string_view/operations/rfind/char/1.cc (test01): + Likewise. + (main): Likewise. + * unittests/basic_string_view/operations/rfind/char/2.cc (test02): + Likewise. + (main): Likewise. + * unittests/basic_string_view/operations/rfind/char/3.cc (test03): + Likewise. + (main): Likewise. + * unittests/basic_string_view/operations/substr/char/1.cc + (test01): Likewise. + (main): Likewise. + * unittests/basic_string_view/operators/char/2.cc (main): + Likewise. + * unittests/optional/assignment/1.cc (test): Likewise. + * unittests/optional/assignment/2.cc (test): Likewise. + * unittests/optional/assignment/3.cc (test): Likewise. + * unittests/optional/assignment/4.cc (test): Likewise. + * unittests/optional/assignment/5.cc (test): Likewise. + * unittests/optional/assignment/6.cc (test): Likewise. + * unittests/optional/assignment/7.cc (test): Likewise. + * unittests/optional/cons/copy.cc (test): Likewise. + * unittests/optional/cons/default.cc (test): Likewise. + * unittests/optional/cons/move.cc (test): Likewise. + * unittests/optional/cons/value.cc (test): Likewise. + * unittests/optional/in_place.cc (test): Likewise. + * unittests/optional/observers/1.cc (test): Likewise. + * unittests/optional/observers/2.cc (test): Likewise. + +2019-11-26 Simon Marchi + + * tui-win.h (tui_set_var_cmd): Remove. + * tui-win.c (tui_set_var_cmd): Make static. + +2019-11-26 Simon Marchi + + * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper, + rbreak_command_wrapper): Remove. + * symtab.c (rbreak_command_wrapper): Remove. + +2019-11-26 Simon Marchi + + * inferior.h (info_terminal_command): Remove declaration. + * inflow.c (info_terminal_command): Make static. + +2019-11-26 Simon Marchi + + * inferior.c (exit_inferior_silent): Remove. + +2019-11-26 Simon Marchi + + * dictionary.c (dict_empty, mdict_empty): Remove. + * dictionary.c (mdict_empty): Remove. + +2019-11-26 Simon Marchi + + * arc-tdep.c (arc_insn_get_memory_base_reg): Make static. + (arc_insn_get_memory_offset): Likewise. + (arc_insn_dump): Likewise. + * cp-support.c (test_cp_symbol_name_matches): Likewise. + * csky-linux-tdep.c (csky_supply_fregset): Likewise. + * dictionary.c (dict_iterator_next): Likewise. + (dict_iter_match_first): Likewise. + (dict_iter_match_next): Likewise. + * f-lang.c (evaluate_subexp_f): Likewise. + * hppa-tdep.c (hppa_read_pc): Likewise. + * i386-tdep.c (i386_floatformat_for_type): Likewise. + * parse.c (write_exp_elt_msym): Likewise. + * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise. + * remote.c (remote_packet_size): Likewise. + (remote_notif_stop_parse): Likewise. + * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise. + * s12z-tdep.c (s12z_disassemble_info): Likewise. + * source.c (prepare_path_for_appending): Likewise. + * sparc64-linux-tdep.c + (sparc64_linux_handle_segmentation_fault); Likewise. + * stack.c (frame_selection_by_function_completer): Likewise. + +2019-11-26 Simon Marchi + + * completer.c (set_gdb_completion_word_break_characters): + Remove. + +2019-11-26 Simon Marchi + + * dwarf-index-write.c: Include dwarf-index-write.h. + * mi/mi-interp.c: Include mi/mi-interp.h. + +2019-11-26 Simon Marchi + + * aarch32-tdep.c: Include aarch32-tdep.h. + * aarch32-tdep.h: Forward-declare struct target_desc. + +2019-11-26 Christian Biesinger + + * linux-nat.c (detach_one_lwp): Call safe_strerror instead of + strerror. + * nto-procfs.c (nto_procfs_target::create_inferior): Likewise. + * windows-nat.c (windows_nat_target::create_inferior): Likewise. + +2019-11-25 Tom de Vries + + * contrib/words.sh: Add -c option. + +2019-11-25 Christian Biesinger + + * solib.c (solib_find_1): Change int to bool. + (exec_file_find): Change int to bool. + (solib_find): Change int to bool. + (solib_read_symbols): Change int to bool. + (solib_used): Change int to bool. + (solib_add): Change int to bool. + (info_sharedlibrary_command): Change int to bool. + (solib_contains_address_p): Change int to bool. + (solib_keep_data_in_core): Change int to bool. + (in_solib_dynsym_resolve_code): Change int to bool. + (reload_shared_libraries_1): Change int to bool. + (gdb_sysroot_changed): Change int to bool. + * solib.h (solib_read_symbols): Change int to bool. + (solib_contains_address_p): Change int to bool. + (solib_keep_data_in_core): Change int to bool. + (in_solib_dynsym_resolve_code): Change int to bool. + (libpthread_name_p): Change int to bool. + +2019-11-25 Luis Machado + + * NEWS (New Commands): Mention "set debug remote-packet-max-chars". + * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove. + (remote_packet_max_chars): New static global. + (show_remote_packet_max_chars): New function. + (remote_target::putpkt_binary): Adjust to use new + remote_packet_max_chars option. + (remote_target::getpkt_or_notif_sane_1): Likewise. + (_initialize_remote): Register new remote-packet-max-chars option. + +2019-11-24 Simon Marchi + + * m68k-linux-nat.c: Include gdbarch.h. + 2019-11-24 Tom Tromey * symfile.c (read_symbols): Update.