X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=3bf43d2dfebde9fdfd6ed078e9b3e5f71cbae768;hb=f1b620e9b4eea4bfd2f35a3039672fa8a5925bcb;hp=ac84245c340e695014a354939df310109ee8f133;hpb=272044897e178835f596c96740c5a1800ec6f9fb;p=binutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ac84245c340..3bf43d2dfeb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,551 @@ +2019-09-17 Mike Gulick + + * source.c (prepare_path_for_appending): New function. + (openp): Make use of new function. + (find_and_open_source): Search for the compilation directory and + source file as a relative path beneath the directory search path. + +2019-09-17 Andrew Burgess + + * source-cache.c (source_cache::get_line_charpos): Catch + exceptions and return false, this matches the behaviour documented + in the header file. + +2019-09-17 Joel Brobecker + + * ada-tasks.c (info_task): Remove quoting of the task's name. + +2019-09-16 Christian Biesinger + + * symfile.c (auto_solib_add): Replace comment with a reference + to the header file. + +2019-09-14 Christian Biesinger + + * NEWS: Mention that gdb can now be compiled with Python 3 + on Windows. + +2019-09-12 Andrew Burgess + + * maint.c (maint_print_section_data::maint_print_section_data): + Force use of 'float log10 (float)' by casting the argument to + float. + +2019-09-12 Andrew Burgess + + * maint.c: Add 'cmath' include. + (struct maint_print_section_data): New structure. + (print_section_index): New function. + (print_bfd_section_info): Add header comment, small whitespace + cleanup, and update to call new print_section_index function. + (print_objfile_section_info): Likewise. + (maint_obj_section_from_bfd_section): New function. + (print_bfd_section_info_maybe_relocated): New function. + (maintenance_info_sections): Add header comment, always use + bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS. + +2019-09-12 Andrew Burgess + + * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more + inner scope, add check that the objfile has psymtabs before + checking psymtabs_addrmap. + * psymtab.h (psymtab_storage) : Extend comment. + +2019-09-12 Philippe Waroquiers + + * NEWS: Announce that Ada task names are now shown at more places, + and between quotes (except in info task output). + * gdb/ada-tasks.c (task_to_str): New function. + (display_current_task_id): Call task_to_str. + (task_command_1): Likewise. + (print_ada_task_info): In non-mi mode, Properly align headers and data + when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR). + +2019-09-12 Rainer Orth + + * procfs.c (procfs_target::wait) : Get signal from + prstatus.pr_lwp.pr_info instead of making it up. + +2019-09-11 Christian Biesinger + + * auto-load.c (auto_load_expand_dir_vars): Update. + * defs.h (gdb_datadir): Change to std::string. + (python_libdir): Likewise. + (relocate_gdb_directory): Change return type to std::string. + * guile/guile.c (gdbscm_data_directory): Update. + (initialize_scheme_side): Update. + * jit.c (jit_reader_dir): Change to std::string. + (jit_reader_load_command): Update. + * main.c (gdb_datadir): Change to std::string. + (python_libdir): Likewise. + (set_gdb_data_directory): Update. + (relocate_path): Change to return std::string. + (relocate_gdb_directory): Change to return std::string. + (relocate_gdbinit_path_maybe_in_datadir): Update. + (captured_main_1): Update. + * python/python.c (do_start_initialization): Update. + * top.c (show_gdb_datadir): Update. + * xml-syscall.c (xml_init_syscalls_info): Update. + (init_syscalls_info): Update. + +2019-09-11 Christian Biesinger + + * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code + out of get_init_files. + (get_init_files): Update. + +2019-09-11 Christian Biesinger + + * main.c (get_init_files): Change to use std::string. + (captured_main_1): Update. + (print_gdb_help): Update. + +2019-09-11 Ali Tamur + + *gdb/target-float.c (host_float_ops::to_longest): Update + implementation. + +2019-09-11 Christian Biesinger + + * dbxread.c (read_dbx_symtab): Update. + * dwarf2read.c (load_partial_dies): Update. + * mdebugread.c (parse_partial_symbols): Update. + (handle_psymbol_enumerators): Update. + * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool. + * psymtab.c (add_psymbol_to_bcache): Likewise. + (add_psymbol_to_list): Likewise. + * symtab.c (symbol_set_names): Likewise. + * symtab.h (symbol_set_names): Likewise. + * xcoffread.c (scan_xcoff_symtab): Update. + +2019-09-11 Tom Tromey + + * symfile-mem.c (symbol_file_add_from_memory): Use + bfd_set_filename. + * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename. + * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename. + +2019-09-10 Tom Tromey + + * dwarf-index-write.c (write_psymbols): Extend error message. + (debug_names::insert): Add Ada code. + (debug_names::write_psymbols): Remove Ada check. + (debug_names) : New member. + * dwarf2read.c (gdb_index_symbol_name_matcher): Remove. + (gdb_index_symbol_name_matcher::matches): Remove. + (mapped_index_base::find_name_components_bounds): Add "lang" + parameter. + (mapped_index_base::build_name_components): Also split names + according to Ada syntax. + (dw2_expand_symtabs_matching_symbol): Loop over languages. Change + type of "match_callback". + (check_match, check_find_bounds_finds) + (dw2_expand_symtabs_matching): Update. + (dw2_debug_names_iterator): Add new constructor. + (dw2_debug_names_map_matching_symbols): New function. + (dw2_debug_names_expand_symtabs_matching): Update. + (dwarf2_debug_names_functions): Use + dw2_debug_names_map_matching_symbols. + +2019-09-10 Tom Tromey + + * dwarf2read.c (dw2_get_file_names_reader): Add the + CU's file name to the results. + +2019-09-10 Tom Tromey + + * ada-lang.c (add_nonlocal_symbols): Combine calls to + map_matching_symbols. Update. + * dwarf2read.c (dw2_map_matching_symbols): Update. + * psymtab.c (match_partial_symbol): Change type; update. + (psym_map_matching_symbols): Likewise. + * symfile-debug.c (debug_qf_map_matching_symbols): Change + type; update. + * symfile.h (struct quick_symbol_functions) + : Change "name" to be a lookup_name_info. + Remove "match". + +2019-09-10 Tom Tromey + + * psymtab.c (map_block): Remove. + (psym_map_matching_symbols): Use iterate_over_symbols_terminated. + * symtab.c (iterate_over_symbols_terminated): New function. + * symtab.c (iterate_over_symbols_terminated): Declare. + +2019-09-10 Tom Tromey + + * ada-lang.c (ada_iterate_over_symbols): Return bool. + * language.h (struct language_defn) : + Return bool. + * symtab.c (iterate_over_symbols): Return bool. + * symtab.h (iterate_over_symbols): Return bool. + +2019-09-10 Tom Tromey + + * ada-lang.c (aux_add_nonlocal_symbols): Change type. + (add_nonlocal_symbols): Update. + * dwarf2read.c (dw2_map_matching_symbols): Change type. + * psymtab.c (map_block, psym_map_matching_symbols): Change type. + * symfile-debug.c (debug_qf_map_matching_symbols): Change type. + * symfile.h (struct quick_symbol_functions) : + Change type of "callback". Remove "data". + + +2019-09-09 Ali Tamur + + * dwarf2read.c (comp_unit_head): Update comment. + (dwarf2_dwo_name): New function declaration. + (dwarf_unit_type_name): New function declaration. + (read_comp_unit_head): Add support for new compilation units, + DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type. + Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id + (currently named as "signature") in their header. Also clarify error + messages. + (lookup_dwo_id): New function. Returns the dwo id of the given + compile unit. + (lookup_dwo_unit): Use the new lookup_dwo_id function. + (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id + functions. + (create_dwo_cu_reader): Use the added lookup_dwo_id function. + (dwarf2_dwo_name): Get the dwo name if present. + (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic + purposes. + +2019-09-09 Tom Tromey + + * tui/tui-win.c (tui_all_windows_info): Use ui_out. + +2019-09-09 Philippe Waroquiers + + * python/python.c (do_start_initialization): Make progname_copy static, + to avoid a leak report. + +2019-09-08 Tom Tromey + + * tui/tui-wingeneral.c (box_win): Truncate long window titles. + +2019-09-07 Simon Marchi + + * dwarf2read.c (struct dw2_symtab_iterator) : + Change type to gdb::optional. + (dw2_symtab_iter_init): Change block_index parameter type + to gdb::optional. + (dw2_lookup_symbol): Change block_index parameter + type to block_enum.c + (dw2_debug_names_lookup_symbol): Likewise. + * psymtab.c (psym_lookup_symbol): Likewise. + * symfile-debug.c (debug_qf_lookup_symbol): Likewise. + * symfile.h (struct quick_symbol_functions) : + Likewise. + +2019-09-06 Christian Biesinger + + * defs.h (relocate_gdb_directory): Change int to bool in + signature and rename flag to relocatable. + * main.c (relocate_path): Likewise. + (relocate_gdb_directory): Likewise. + +2019-09-06 Alan Modra + + * coffread.c (coff_symfile_read): Constify filename variable. + * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs), + (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise. + * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise. + * solib.c (reload_shared_libraries_1): Likewise. + * symfile.c (reread_symbols): Likewise. + * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename. + * solib-darwin.c (darwin_bfd_open): Likewise. + * symfile-mem.c (symbol_file_add_from_memory): Likewise. + +2019-09-03 Andrew Burgess + + * psymtab.c (print_partial_symbols): Handle missing domain_enum + values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN. + +2019-09-03 Tom Tromey + + * ada-valprint.c (ada_val_print_num): Don't recurse for range + types. + (has_negatives): Unbias a range type bound. + * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias. + * gdbtypes.c (operator==): Handle new field. + (create_range_type): Add "bias" parameter. + (create_static_range_type, resolve_dynamic_range): Update. + * gdbtypes.h (struct range_bounds) : New member. + (create_range_type): Add bias parameter. + * printcmd.c (print_scalar_formatted): Unbias range types. + * value.c (unpack_long): Unbias range types. + (pack_long): Bias range types. + +2019-09-02 Alan Hayward + + * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all + probe arguments. + +2019-09-02 Alan Hayward + + * break-catch-throw.c (fetch_probe_arguments): Use gdbarch. + * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise. + * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg) + (compile_probe_arg): Likewise. + * probe.h (get_argument_count): Likewise. + * solib-svr4.c (solib_event_probe_action): Likewise. + * stap-probe.c (stap_probe::get_argument_count): Likewise. + +2019-09-02 Alan Hayward + + * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move + code to here... + (svr4_create_solib_event_breakpoints): ...from here. + +2019-08-30 Sergio Durigan Junior + + * nat/fork-inferior.c (trace_start_error): Remove "\nError: " + suffix from warning message. + +2019-08-30 Tom Tromey + + * tui/tui-winsource.h (struct tui_source_window_base) + : Don't declare. + * tui/tui-winsource.c (tui_source_window_base::refresh_all): + Remove. + * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or + tui_show_locator_content. + * tui/tui-regs.h (struct tui_data_window) : Don't + declare. + * tui/tui-regs.c (tui_data_window::refresh_all): Remove. + * tui/tui-data.h (struct tui_win_info) : Don't + declare. + +2019-08-30 Tom Tromey + + * tui/tui-io.c (tui_cont_sig): Don't call wrefresh. + +2019-08-30 Tom Tromey + + * tui/tui-stack.c (_initialize_tui_stack): Move later. + Remove unnecessary forward declarations. + +2019-08-30 Tom Tromey + + * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call + rerender. + (tui_update_locator_fullname, tui_show_frame_info): Don't call + tui_show_locator_content. + +2019-08-30 Tom Tromey + + * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite. + (tui_locator_window::rerender): Rewrite using body of previous + tui_show_locator_content. + +2019-08-30 Tom Tromey + + * tui/tui-stack.h (struct tui_locator_window) : New methods. + * tui/tui-stack.c (tui_locator_window::set_locator_fullname): + Rename from tui_set_locator_fullname. + (tui_locator_window::set_locator_info): Rename from + tui_set_locator_info. Return bool. + (tui_update_locator_fullname, tui_show_frame_info): Update. + +2019-08-30 Tom Tromey + + * tui/tui-layout.c (show_layout): Don't call tui_refresh_all. + +2019-08-30 Tom Tromey + + * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't + call touchwin. + +2019-08-30 Tom Tromey + + * tui/tui-wingeneral.c (box_win): Assume win_info and + win_info->handle cannot be NULL. + +2019-08-30 Tom Tromey + + * tui/tui-regs.h (struct tui_data_item_window) : Declare. + * tui/tui-regs.c (tui_data_window::display_registers_from): Call + resize. + (tui_data_item_window::rerender): Rename from + tui_display_register. + (tui_data_item_window::refresh_window): New method. + * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on + no-op. + +2019-08-30 Tom Tromey + + * tui/tui-regs.h (struct tui_data_window) : Move later. Now private. + : New method. + * tui/tui-regs.c (tui_reg_command): Update. + * tui/tui-layout.c (tui_set_layout): Update. + +2019-08-30 Tom Tromey + + * tui/tui-regs.c (tui_data_window::display_registers_from_line) + (tui_data_window::rerender): Don't call + check_and_display_highlight_if_needed. + (tui_data_window::refresh_all): Remove call to + erase_data_content. + +2019-08-30 Tom Tromey + + * tui/tui-regs.c (tui_data_window::last_regs_line_no) + (tui_data_window::display_registers_from) + (tui_data_window::display_reg_element_at_line) + (tui_data_window::display_registers_from_line): Remove checks of + "empty". + +2019-08-30 Tom Tromey + + * tui/tui-regs.h (struct tui_data_window) : + Don't declare. + * tui/tui-regs.c (tui_data_window::show_registers): Call + rerender. + (tui_data_window::rerender): Rename from display_all_data. + (tui_data_window::rerender): Remove old implementation. + +2019-08-30 Tom Tromey + + * tui/tui-regs.c (tui_data_window::display_all_data): Change + text. + * tui/tui-data.h (NO_DATA_STRING): Remove define. + +2019-08-29 Bernhard Wodok + Sergio Durigan Junior + + PR win32/24284 + * mingw-hdep.c (gdb_select): Handle case when 'n' is zero. + +2019-08-28 Andrew Burgess + + * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols + when searching for types. + +2019-08-28 Andrew Burgess + + * f-lang.c (f_language_defn): Use f_print_typedef. + * f-lang.h (f_print_typedef): Declare. + * f-typeprint.c (f_print_typedef): Define. + +2019-08-27 Christian Biesinger + + * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1). + +2019-08-27 Andrew Burgess + + * cli/cli-utils.c (info_print_options_defs): Delete. + (make_info_print_options_def_group): Delete. + (extract_info_print_options): Delete. + (info_print_command_completer): Delete. + (info_print_args_help): Add extra parameter, and optionally + include text about -n flag. + * cli/cli-utils.h (struct info_print_options): Delete. + (extract_info_print_options): Delete declaration. + (info_print_command_completer): Delete declaration. + (info_print_args_help): Add extra parameter, extend header + comment. + * python/python.c (gdbpy_rbreak): Pass additional parameter to + search_symbols. + * stack.c (struct info_print_options): New type. + (info_print_options_defs): New file scoped variable. + (make_info_print_options_def_group): New static function. + (info_print_command_completer): New static function. + (info_locals_command): Update to use new local functions. + (info_args_command): Likewise. + (_initialize_stack): Add extra parameter to calls to + info_print_args_help. + * symtab.c (search_symbols): Add extra parameter, use this to + possibly excluse non-debug symbols. + (symtab_symbol_info): Add extra parameter, which is passed on to + search_symbols. + (struct info_print_options): New type. + (info_print_options_defs): New file scoped variable. + (make_info_print_options_def_group): New static function. + (info_print_command_completer): New static function. + (info_variables_command): Update to use local functions, and pass + extra parameter through to symtab_symbol_info. + (info_functions_command): Likewise. + (info_types_command): Pass additional argument through to + symtab_symbol_info. + (rbreak_command): Pass extra argument to search_symbols. + (_initialize_symtab): Add extra arguments for calls to + info_print_args_help, and update help text for 'info variables', + 'whereis', and 'info functions' commands. + * symtab.h (search_symbols): Add extra argument to declaration. + * NEWS: Mention new flags. + +2019-08-26 Christian Biesinger + + * symtab.c (lookup_static_symbol): Call the new function (and move + it down to be next to lookup_global_symbol). + (struct global_sym_lookup_data): Add block_enum member and rename to... + (struct global_or_static_sym_lookup_data): ...this. + (lookup_symbol_global_iterator_cb): Pass block_index instead of + GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to... + (lookup_symbol_global_or_static_iterator_cb): ...this. + (lookup_global_or_static_symbol): New function. + (lookup_global_symbol): Call new function. + +2019-08-26 Tom de Vries + + PR c++/24852 + * break-catch-throw.c (fetch_probe_arguments): Improve error mesage + when pc_probe.prob == NULL. + +2019-08-25 Simon Marchi + + * dwarf2read.c (dw2_debug_names_iterator::next): Rename local + variable symbol_linkage to symbol_linkage_. + +2019-08-25 Simon Marchi + + * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to + represent whether the symbol is static, dynamic, or we don't + know. + +2019-08-25 Yoshinori Sato + + * gdb/rx-tdep.c (rx_register_names): New. + (rx_register_name): Delete. + (rx_psw_type): Delete. + (rx_fpsw_type): Delete. + (rx_register_type): Delete. + (rx_gdbarch_init): Convert target-descriptions. + (_initialize_rx_tdep): Add initialize_tdesc_rx. + * gdb/features/Makefile: Add rx.xml. + * gdb/features/rx.xml: New. + * gdb/features/rx.c: Generated. + * gdb/NEWS: Mention target description support. + +2019-08-22 Christian Biesinger + + * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and + *slot_ptr. + +2019-08-23 Sergio Durigan Junior + + * configure.ac: Don't check for 'dlfcn.h' (moved to + gdbsupport/common.m4). + * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to + 'gdbsupport/'. + (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'. + * compile/compile-c-support.c: Include + 'gdbsupport/gdb-dlfcn.h'. + * gdbsupport/common.m4: Check for 'dlfcn.h'. + * gdb-dlfcn.c: Move to... + * gdbsupport/gdb-dlfcn.c: ... here. + * gdb-dlfcn.h: Move to... + * gdbsupport/gdb-dlfcn.h: ... here. + +2019-08-23 Sandra Loosemore + + * nios2-tdep.c (struct reg_value): Improve comments. Make + the offset field signed. + 2019-08-22 Christian Biesinger * python/lib/gdb/__init__.py (_execute_file): New function.