X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FChangeLog;h=80c027df8ac48e3b7076626f16f5a47d92766986;hb=7aa1b46f4321eb2c2054c4d8985f2d8e3c18aa36;hp=d751c052ce9a12b76b541c1ea6727c07dab0127c;hpb=cb02ab2416c2d83ca053652a21788189f3f7779f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d751c052ce..80c027df8a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,472 @@ +2020-05-15 Philippe Waroquiers + + * cli/cli-setshow.h (cmd_show_list): Remove prefix argument. + * cli/cli-decode.c (do_show_prefix_cmd): Likewise. + * command.h (cmd_show_list): Likewise. + * dwarf2/index-cache.c (show_index_cache_command): Likewise. + * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases. + +2020-05-15 Philippe Waroquiers + + * unittests/command-def-selftests.c (traverse_command_structure): + Verify all commands of a list have the same prefix command and + that only the top cmdlist commands have a null prefix. + +2020-05-15 Philippe Waroquiers + + * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command + as prefix, not one of its aliases. + (set_cmd_prefix): Remove. + (do_add_cmd): Centralize the setting of the prefix of a command, when + command is defined after its full chain of prefix commands. + (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it. + (add_setshow_cmd_full): Likewise. + (update_prefix_field_of_prefixed_commands): New function. + (add_prefix_cmd): Replace non working call to set_cmd_prefix by + update_prefix_field_of_prefixed_commands. + * gdb/remote-fileio.c (initialize_remote_fileio): Use the real + addresses of remote_set_cmdlist and remote_show_cmdlist given + as argument, not the address of an argument. + * gdb/remote-fileio.h (initialize_remote_fileio): Likewise. + * gdb/remote.c (_initialize_remote): Likewise. + +2020-05-15 Philippe Waroquiers + + * cli/cli-cmds.c (alias_command): Check for an existing alias + using lookup_cmd_composition, as valid_command_p is too strict + and forbids aliases that are the prefix of an existing alias + or command. + * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix + command is properly recognised as a valid command. + +2020-05-15 Philippe Waroquiers + + * unittests/help-doc-selftests.c: Rename to + unittests/command-def-selftests.c + * unittests/command-def-selftests.c (help_doc_tests): Update some + comments. + (command_structure_tests, traverse_command_structure): New namespace + and function. + (command_structure_invariants_tests): New function. + (_initialize_command_def_selftests) Renamed from + _initialize_help_doc_selftests, register command_structure_invariants + selftest. + +2020-05-15 Philippe Waroquiers + + * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as + an alias of 'show'. + +2020-05-15 Joel Brobecker + + * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames + ada_is_fixed_point_type. Update all callers. + (gnat_encoded_fixed_point_delta): Renames ada_delta. Update + all callers. + * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info. + Update all callers. + * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames + print_fixed_point_type. Update all callers. + * ada-valprint.c (ada_value_print_num): Replace call to + ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type. + +2020-05-14 Kevin Buettner + + * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD + processors. + (cpu_supports_bts): Add CV_AMD case. + +2020-05-14 Laurent Morichetti + Simon Marchi + + * infrun.c (stop_all_threads): Collect multiple wait events at + each pass. + +2020-05-14 Simon Marchi + + * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use + type::code instead. + +2020-05-14 Simon Marchi + + * gdbtypes.h (struct type) : New methods. + (TYPE_CODE): Use type::code. Change all call sites used to set + the code to use type::set_code instead. + +2020-05-14 Tankut Baris Aktemur + Tom de Vries + Pedro Alves + + PR threads/25478 + * infrun.c (stop_all_threads): Do NOT ignore + TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED, + TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses + received. + (handle_no_resumed): Remove code handling a live inferior with no + threads. + * remote.c (has_single_non_exited_thread): New. + (remote_target::update_thread_list): Do not delete a thread if is + the last thread of the process. + * thread.c (thread_select): Call delete_exited_threads instead of + prune_threads. + +2020-05-14 Tankut Baris Aktemur + + * infrun.c (stop_all_threads): Enable/disable thread events of all + targets. Move a debug message denoting the end of the function + into the SCOPED_EXIT block. + +2020-05-14 Tankut Baris Aktemur + + * process-stratum-target.h: Include . + (all_non_exited_process_targets, switch_to_target_no_thread): New + function declarations. + * process-stratum-target.c (all_non_exited_process_targets) + (switch_to_target_no_thread): New function implementations. + +2020-05-14 Tankut Baris Aktemur + + * infrun.c (handle_inferior_event): Extract out a piece of code + into... + (mark_non_executing_threads): ...this new function. + +2020-05-14 Tankut Baris Aktemur + + * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first + use. + +2020-05-14 Tankut Baris Aktemur + + * regcache.c (regcache_read_pc_protected): New function + implementation that returns 0 if the PC cannot read via + 'regcache_read_pc'. + * infrun.c (proceed): Call 'regcache_read_pc_protected' + instead of 'regcache_read_pc'. + (keep_going_pass_signal): Ditto. + +2020-05-13 Tom Tromey + + * ada-lang.c (align_value): Remove. + (ada_template_to_fixed_record_type_1): Use align_up. + +2020-05-13 Tankut Baris Aktemur + + * async-event.c: Update the copyright year. + * async-event.h: Update the copyright year. + +2020-05-12 Simon Marchi + + * objfiles.h (is_addr_in_objfile, + shared_objfile_contains_address_p): Return bool. + * objfile.c (is_addr_in_objfile, + shared_objfile_contains_address_p): Return bool. + +2020-05-11 Tom Tromey + + * cli/cli-cmds.c (info_command): Restore. + (_initialize_cli_cmds): Use add_prefix_command for "info". + * gdb-gdb.gdb.in: Restore breakpoint on info_command. + +2020-05-11 Tom Tromey + + * ada-lang.c (ada_value_primitive_field): Now public. + * ada-lang.h (ada_value_primitive_field): Declare. + * ada-valprint.c (print_field_values): Use + ada_value_primitive_field for wrapper fields. + +2020-05-11 Tom de Vries + + * dwarf2/index-write.c (debug_names::psymbol_tag): Handle + MODULE_DOMAIN. + +2020-05-11 Tom de Vries + + PR symtab/25941 + * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs + with length 0, if not gdb-produced. + (cutu_reader::cutu_reader): Set CU length to actual length if 0. + +2020-05-09 Tom de Vries + + PR gdb/25955 + * break-catch-throw.c (check_status_exception_catchpoint): Fix name + calculation. + +2020-05-09 Tom Tromey + + * top.c (server_command): Now bool. + * top.h (server_command): Now bool. + +2020-05-08 Tom Tromey + + * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE + already being processed. + +2020-05-08 Tom Tromey + + * printcmd.c (struct display) : Remove. + : New constructor. + : Now a std::string. + : Now a bool. + (display_number): Move definition earlier. + (displays): Rename from display_chain. Now a std::vector. + (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove. + (display_command): Update. + (do_one_display, disable_display) + (enable_disable_display_command, do_enable_disable_display): + Update. + (free_display): Remove. + (clear_displays): Rewrite. + (delete_display): Update. + (map_display_numbers): Use function_view. Remove "data" + parameter. Update. + (do_delete_display): Remove. + (undisplay_command): Update. + (do_one_display, do_displays, disable_display) + (info_display_command): Update. + (do_enable_disable_display): Remove. + (enable_disable_display_command) + (clear_dangling_display_expressions): Update. + +2020-05-08 Tom Tromey + + * symtab.c (set_symbol_cache_size) + (maintenance_print_symbol_cache, maintenance_flush_symbol_cache) + (maintenance_print_symbol_cache_statistics): Update. + * symmisc.c (print_symbol_bcache_statistics) + (print_objfile_statistics, maintenance_print_objfiles) + (maintenance_info_symtabs, maintenance_check_symtabs) + (maintenance_expand_symtabs, maintenance_info_line_tables): + Update. + * symfile-debug.c (set_debug_symfile): Update. + * source.c (forget_cached_source_info): Update. + * python/python.c (gdbpy_progspaces): Update. + * psymtab.c (maintenance_info_psymtabs): Update. + * probe.c (parse_probes): Update. + * linespec.c (iterate_over_all_matching_symtabs) + (collect_symtabs_from_filename, search_minsyms_for_name): Update. + * guile/scm-progspace.c (gdbscm_progspaces): Update. + * exec.c (exec_target::close): Update. + * ada-tasks.c (ada_tasks_new_objfile_observer): Update. + * breakpoint.c (print_one_breakpoint_location) + (create_longjmp_master_breakpoint) + (create_std_terminate_master_breakpoint): Update. + * progspace.c (program_spaces): Now a std::vector. + (maybe_new_address_space): Update. + (add_program_space): Remove. + (program_space::program_space): Update. + (remove_program_space): Update. + (number_of_program_spaces): Remove. + (print_program_space, update_address_spaces): Update. + * progspace.h (program_spaces): Change type. + (ALL_PSPACES): Remove. + (number_of_program_spaces): Don't declare. + (struct program_space) : Remove. + +2020-05-08 Tom Tromey + + * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update. + * solib-svr4.c (svr4_fetch_objfile_link_map): Update. + (enable_break): Update. + * solib-frv.c (frv_fdpic_find_global_pointer): Update. + (frv_fdpic_find_canonical_descriptor): Update. + (frv_fetch_objfile_link_map): Update. + * progspace.c (program_space::free_all_objfiles): Update. + (program_space::solibs): New method. + * progspace.h (struct program_space) : New method. + * solist.h (master_so_list): Don't declare. + (ALL_SO_LIBS): Remove. + * solib.h (so_list_head): Remove. + (update_solib_list): Update comment. + * solib.c (master_so_list): Remove. + (solib_used, update_solib_list, solib_add) + (info_sharedlibrary_command, clear_solib) + (reload_shared_libraries_1, remove_user_added_objfile): Update. + +2020-05-08 Tom Tromey + + * extension.c (extension_languages): Now a std::array. + (ALL_EXTENSION_LANGUAGES): Remove. + (get_ext_lang_defn, get_ext_lang_of_file) + (eval_ext_lang_from_control_command): Update. + (finish_ext_lang_initialization) + (auto_load_ext_lang_scripts_for_objfile) + (ext_lang_type_printers::ext_lang_type_printers) + (apply_ext_lang_type_printers) + (ext_lang_type_printers::~ext_lang_type_printers) + (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter) + (preserve_ext_lang_values, get_breakpoint_cond_ext_lang) + (breakpoint_ext_lang_cond_says_stop, check_quit_flag) + (get_matching_xmethod_workers, ext_lang_colorize) + (ext_lang_before_prompt): Update. + (ALL_ENABLED_EXTENSION_LANGUAGES): Remove. + +2020-05-08 Tom Tromey + + * symtab.h (class demangle_result_storage) : New + overload. + : Remove. + * symtab.c (demangle_for_lookup, completion_list_add_symbol): + Update. + * stabsread.c (define_symbol, read_type): Update. + * linespec.c (find_linespec_symbols): Update. + * gnu-v3-abi.c (gnuv3_get_typeid): Update. + * dwarf2/read.c (dwarf2_canonicalize_name): Update. + * dbxread.c (read_dbx_symtab): Update. + * cp-support.h (cp_canonicalize_string_full) + (cp_canonicalize_string, cp_canonicalize_string_no_typedefs): + Return unique_xmalloc_ptr. + * cp-support.c (inspect_type): Update. + (cp_canonicalize_string_full): Return unique_xmalloc_ptr. + (cp_canonicalize_string_no_typedefs, cp_canonicalize_string): + Likewise. + * c-typeprint.c (print_name_maybe_canonical): Update. + * break-catch-throw.c (check_status_exception_catchpoint): + Update. + +2020-05-08 Tom de Vries + + * infrun.c (follow_fork): Copy current_line and current_symtab to + child thread. + +2020-05-07 Simon Marchi + + * async-event.c (struct async_signal_handler, struct + async_event_handler): Reformat, remove typedef. + +2020-05-07 Simon Marchi + + * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users + access thistype->main_type->dyn_prop_list directly. + +2020-05-07 Simon Marchi + + * gdbtypes.h (struct type) : New method. + (remove_dyn_prop): Remove. Update all users to use + type::remove_dyn_prop. + * gdbtypes.c (remove_dyn_prop): Rename to... + (type::remove_dyn_prop): ... this. + +2020-05-07 Simon Marchi via Gdb-patches + + * gdbtypes.h (struct type) : New method. + (add_dyn_prop): Remove. Update all users to use + type::add_dyn_prop. + * gdbtypes.c (add_dyn_prop): Rename to... + (type::add_dyn_prop): ... this. + +2020-05-07 Simon Marchi + + * gdbtypes.h (struct type) : New method. + (get_dyn_prop): Remove. Update all users to use + type::dyn_prop. + * gdbtypes.c (get_dyn_prop): Rename to... + (type::dyn_prop): ... this. + +2020-05-06 Simon Marchi + + * gdbtypes.h (struct main_type) : Remove. + +2020-05-06 Simon Marchi + + * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64` + instruction, skip it if it's there. + +2020-05-05 Simon Marchi + + * gdbtypes.h (struct main_type) : Remove. + +2020-05-04 Simon Marchi + + * gdbtypes.h (TYPE_INCOMPLETE): Remove. + * gdbtypes.c (recursive_dump_type): Remove use of + TYPE_INCOMPLETE. + +2020-05-03 Tom Tromey + + * breakpoint.c (catch_command, tcatch_command): Remove. + (_initialize_breakpoint): Use add_basic_prefix_cmd, + add_show_prefix_cmd. + (set_breakpoint_cmd, show_breakpoint_cmd): Remove + * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): + Remove. + (add_internal_problem_command): Use add_basic_prefix_cmd, + add_show_prefix_cmd. + * mips-tdep.c (set_mipsfpu_command): Remove. + (_initialize_mips_tdep): Use add_basic_prefix_cmd. + * dwarf2/index-cache.c (set_index_cache_command): Remove. + (_initialize_index_cache): Use add_basic_prefix_cmd. + * memattr.c (dummy_cmd): Remove. + (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd. + * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove. + (_initialize_tui_win): Use add_basic_prefix_cmd, + add_show_prefix_cmd. + * cli/cli-logging.c (set_logging_command): Remove. + (_initialize_cli_logging): Use add_basic_prefix_cmd, + add_show_prefix_cmd. + (show_logging_command): Remove. + * target.c (target_command): Remove. + (add_target): Use add_basic_prefix_cmd. + +2020-05-02 Hannes Domani + + * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo. + +2020-05-01 Philippe Waroquiers + + * gdb-gdb.gdb-in: Remove breakpoint on disappeared function + info_command. + +2020-04-30 Kamil Rytarowski + + * nbsd-nat.c (nbsd_enable_proc_events) + (nbsd_nat_target::post_startup_inferior): Add. + (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'. + (nbsd_nat_target::update_thread_list): Rewrite. + (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and + "PTRACE_LWP_CREATE". + * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add. + +2020-04-30 Philippe Waroquiers + + * stack.c (_initialize_stack): Remove duplicated creation + of "frame" command and "f" alias. + +2020-04-30 Hannes Domani + + PR gdb/18706 + * gdbtypes.c (check_typedef): Calculate size of array of + stubbed type. + +2020-04-30 Hannes Domani + + PR gdb/15559 + * i386-tdep.c (i386_push_dummy_call): Call + i386_thiscall_push_dummy_call. + (i386_thiscall_push_dummy_call): New function. + * i386-tdep.h (i386_thiscall_push_dummy_call): Declare. + * i386-windows-tdep.c (i386_windows_push_dummy_call): New function. + (i386_windows_init_abi): Call set_gdbarch_push_dummy_call. + +2020-04-29 Simon Marchi + + * gdbarch.sh (do_read): Add shellcheck disable directive for + warning SC2162. + +2020-04-29 Simon Marchi + + * gdbarch.sh: Use ${foo:-} where shellcheck would report a + "referenced but not assigned" warning. + +2020-04-29 Simon Marchi + + * gdbarch.sh: Remove code that sets fallbackdefault. + +2020-04-29 Simon Marchi + + * gdbarch.sh: Use shell operators && and || instead of + -a and -o. + 2020-04-29 Simon Marchi * gdbarch.sh: Use $(...) instead of `...`. @@ -11,10 +480,6 @@ * gdbarch.sh: Use %s with printf, instead of variables in the format string. -2020-04-29 Sterling Augustine - - * dwarf2/read.c (setup_type_unit_groups): Set list_in_scope. - 2020-04-29 Tom Tromey PR ada/25875: