Introduce the "with" command
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index cc248f07c06fc325f3b44bd15bd1614f9057ca1f..adc56b498993a039825c1d491f1d0417069fae83 100644 (file)
@@ -1,3 +1,364 @@
+2019-07-03  Pedro Alves  <palves@redhat.com>
+
+       * NEWS (New commands): Mention "with" and "maint with".
+       * cli/cli-cmds.c (with_command_1, with_command_completer_1)
+       (with_command, with_command_completer): New.
+       (pipe_command): Adjust to new repeat_previous
+       interface.
+       (_initialize_cli_cmds): Install the "with" command and its "w"
+       alias.
+       * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
+       declarations.
+       * cli/cli-setshow.c (parse_cli_var_uinteger)
+       (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
+       argument strings for all var_types.
+       (get_setshow_command_value_string): New, factored out from ...
+       (do_show_command): ... this.
+       * cli/cli-setshow.h: Include <string>.
+       (get_setshow_command_value_string): Declare.
+       * command.h (repeat_previous): Now returns const char *.  Adjust
+       comment.
+       * maint.c: Include "cli/cli-cmds.h".
+       (maintenance_with_cmd, maintenance_with_cmd_completer): New.
+       (_initialize_maint_cmds): Register the "maintenance with" command.
+       * top.c (repeat_previous): Move bits from pipe_command here:
+       Return the saved command line, if any; error out if there's no
+       command to relaunch.
+
+2019-07-03  Pedro Alves  <palves@redhat.com>
+
+       * NEWS (New commands): Mention "maint set/show test-settings"
+       instead of "maint test-settings".
+       * maint-test-settings.c (maintenance_test_settings_list): Delete.
+       (maintenance_test_settings_set_list): Rename to ...
+       (maintenance_set_test_settings_list): ... this.
+       (maintenance_test_settings_show_list): Rename to  ...
+       (maintenance_show_test_settings_list): ... this.
+       (maintenance_test_settings_cmd): Delete.
+       (maintenance_test_settings_set_cmd): ...
+       (maintenance_set_test_settings_cmd): ... this.
+       (maintenance_test_settings_show_cmd): ...
+       (maintenance_show_test_settings_cmd): ... this.
+       (maintenance_test_settings_show_value_cmd):
+       (maintenance_show_test_settings_value_cmd): ... this.
+       (_initialize_maint_test_settings): No longer install the "maint
+       test-settings" prefix command.  Rename "maint test-settings set"
+       to "maint set test-settings", and "maint test-settings show" to
+       "maint show test-settings".  Adjust all subcommands.
+
+2019-07-03  Pedro Alves  <palves@redhat.com>
+
+       * maint-test-settings.c: Fix file's intro comment.  Replace all
+       references to "test-options" with references to "test-settings",
+       in comments.
+
+2019-07-03  Pedro Alves  <palves@redhat.com>
+
+       * maint-test-settings.c (maintenance_test_settings_xxx)
+       (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
+       New.
+       (maintenance_test_settings_enums): Use them.
+       (maintenance_test_settings_enum): Default to
+       maintenance_test_settings_xxx.
+       (_initialize_maint_test_settings): Initialize
+       MAINTENANCE_TEST_SETTINGS_FILENAME.
+
+2019-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * breakpoint.h (remove_breakpoints_inf): Change return type to
+       void, move function documentation here.
+       * breakpoint.c (remove_breakpoints_inf): Change return type to
+       void, move function documentation to header.
+
+2019-07-02  Pedro Alves  <palves@redhat.com>
+
+       * NEWS (Completion improvements): Mention "info threads".
+       * thread.c (struct info_threads_opts, info_threads_option_defs)
+       (make_info_threads_options_def_group): New.
+       (info_threads_command): Use gdb::option::process_options.
+       (info_threads_command_completer): New.
+       (_initialize_thread): Use gdb::option::build_help to build the
+       help text for "info threads".
+
+2019-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * defs.h (generic_load): Move from here...
+       * symfile.h (generic_load): ... to here.  Rename name parameter
+       to args.
+       * symfile.c (generic_load): Add comment.
+
+2019-07-01  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2read.c
+       (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
+       declaration of without_params.  Fix formatting.
+
+2019-07-01  Tom Tromey  <tromey@adacore.com>
+
+       * ada-exp.y (find_primitive_type): Update.
+       * ada-lang.h (ada_lookup_symbol): Update.
+       * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
+       parameter.
+       (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
+
+2019-06-28  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       PR breakpoints/24541
+       * gdbarch.c: Regenerate.
+       * gdbarch.h: Regenerate.
+       * gdbarch.sh: Add 'stap_adjust_register'.
+       * i386-tdep.c: Include '<unordered_set>'.
+       (i386_stap_adjust_register): New function.
+       (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
+       * stap-probe.c (stap_parse_register_operand): Call
+       'gdbarch_stap_adjust_register'.
+
+2019-06-28  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       PR python/24742
+       https://bugzilla.redhat.com/show_bug.cgi?id=1723564
+       * python/python.c (do_start_initialization): Use 'xmalloc'
+       instead of 'PyMem_Malloc'.
+
+2019-06-28  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2read.c (partial_die_info::read): Prefer the linkage name
+       for Ada.
+
+2019-06-27  Tom Tromey  <tromey@adacore.com>
+
+       * arm-tdep.c (arm_objfile_data_key): Move lower.  Change type to
+       objfile_key.
+       (arm_find_mapping_symbol, arm_record_special_symbol)
+       (_initialize_arm_tdep): Update.
+       (arm_objfile_data_free): Remove.
+
+2019-06-27  Tom Tromey  <tromey@adacore.com>
+
+       * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
+       to cp_print_static_field.
+
+2019-06-26  Tom Tromey  <tromey@adacore.com>
+
+       * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
+       * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
+       declare.
+
+2019-06-26  Alan Hayward  <alan.hayward@arm.com>
+
+       * features/aarch64-core.c (create_feature_aarch64_core):
+       Regenerate.
+       * features/aarch64-core.xml: Add cpsr flags.
+
+2019-06-26  Alan Hayward  <alan.hayward@arm.com>
+
+       * arm-tdep.c (arm_gnu_triplet_regexp): New function.
+       (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
+
+2019-06-25  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
+       field.
+       (arm_find_mapping_symbol): Sort mapping symbol vectors on first
+       use.
+       (arm_record_special_symbol): Don't insert new symbol in sorted
+       position, push it at the end.
+
+2019-06-25  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
+       (arm_mapping_symbol_s): Remove.
+       (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
+       (arm_mapping_symbol_vec): New typedef.
+       (struct arm_per_objfile): Add constructor.
+       <section_maps>: Change type to
+       std::unique_ptr<arm_mapping_symbol_vec[]>.
+       (arm_compare_mapping_symbols): Remove.
+       (arm_find_mapping_symbol): Adjust to section_maps type change.
+       (arm_objfile_data_free): Call delete on arm_per_objfile.
+       (arm_record_special_symbol): Adjust to section_maps type change.
+       Allocate arm_per_objfile with new.
+
+2019-06-25  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * cli/cli-cmds.c (alias_command): Compare the alias prefix
+       with the command prefix.
+
+2019-06-25  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
+       * tui/tui-data.c (~tui_gen_win_info): Remove "if".
+
+2019-06-25  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
+       type.
+       * tui/tui-data.h (struct tui_gen_win_info): Make constructor
+       protected.
+
+2019-06-25  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.c
+       (tui_source_window_base::set_is_exec_point_at): Add check against
+       LOA_ADDRESS.
+
+2019-06-25  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-source.c (tui_set_source_content): Don't check before
+       xfree.
+       * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
+
+2019-06-25  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.h (tui_update_source_window_as_is)
+       (tui_alloc_source_buffer, tui_line_is_displayed)
+       (tui_addr_is_displayed): Change type of win_info.
+       * tui/tui-winsource.c (tui_update_source_window_as_is)
+       (tui_clear_source_content, tui_show_source_line)
+       (tui_show_source_content, tui_source_window_base::refill)
+       (tui_source_window_base::set_is_exec_point_at)
+       (tui_source_window_base::set_is_exec_point_at)
+       (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
+       (tui_alloc_source_buffer, tui_line_is_displayed)
+       (tui_addr_is_displayed): Change type of win_info.  Update.
+       * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
+       (tui_source_window_base::do_make_visible_with_new_height):
+       Update.
+       * tui/tui-source.c (tui_set_source_content)
+       (tui_set_source_content_nil)
+       (tui_source_window::do_scroll_vertical): Update.
+       * tui/tui-layout.c (show_layout): Update.
+       * tui/tui-disasm.c (tui_set_disassem_content)
+       (tui_disasm_window::do_scroll_vertical): Update.
+       * tui/tui-data.h (tui_win_content): Remove.
+       (struct tui_gen_win_info) <content, content_size>: Remove.
+       (struct tui_source_element): Add initializers and destructor.
+       (union tui_which_element, struct tui_win_element): Remove.
+       (struct tui_source_window_base) <content>: New field.
+       (struct tui_data_window): Remove destructor.
+       (tui_alloc_content, tui_free_win_content)
+       (tui_free_all_source_wins_content): Don't declare.
+       * tui/tui-data.c (tui_initialize_static_data): Update.
+       (init_content_element, tui_alloc_content): Remove.
+       (~tui_gen_win_info): Update.
+       (~tui_data_window, tui_free_all_source_wins_content)
+       (tui_free_win_content, free_content, free_content_elements):
+       Remove.
+
+2019-06-25  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.h (tui_clear_source_content)
+       (tui_erase_source_content, tui_show_source_content): Change type
+       of win_info.
+       * tui/tui-winsource.c (tui_clear_source_content)
+       (tui_erase_source_content, tui_show_source_content): Change type
+       of win_info.
+       * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
+       * tui/tui-source.h (tui_set_source_content_nil): Change type of
+       win_info.
+       * tui/tui-source.c (tui_set_source_content_nil): Change type of
+       win_info.
+       * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
+
+2019-06-25  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.c (tui_clear_source_content)
+       (tui_source_window_base::set_is_exec_point_at): Update.
+       * tui/tui-source.c (tui_set_source_content_nil): Update.
+       * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
+       a bool.
+       * tui/tui-data.c (init_content_element): Update.
+
+2019-06-25  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
+       * tui/tui-win.c (make_invisible_and_set_new_height): Update.
+       * tui/tui-layout.c (init_and_make_win): Update.
+       * tui/tui.h (enum tui_win_type): Update.
+       * tui/tui-data.h (tui_win_is_auxiliary): Rename from
+       tui_win_is_auxillary.
+       * tui/tui-data.c (tui_win_is_auxiliary): Rename from
+       tui_win_is_auxillary.
+
+2019-06-25  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
+       * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
+       (tui_delete_data_content_windows, tui_display_all_data)
+       (tui_data_window::do_scroll_vertical, tui_display_data_from):
+       Update.
+       * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
+       * tui/tui-regs.c (tui_last_regs_line_no)
+       (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
+       (tui_show_registers): Update.
+       (tui_show_register_group): Return void.  Update.
+       (tui_display_registers_from, tui_display_reg_element_at_line)
+       (tui_display_registers_from_line, tui_check_register_values):
+       Update.
+       * tui/tui-data.h (union tui_which_element) <data_window>: Remove
+       member.
+       (struct tui_data_window) <regs_content>: Now a std::vector.
+       <regs_content_count>: Remove.
+       (tui_add_content_elements, tui_free_data_content): Don't declare.
+       * tui/tui-data.c (tui_data_window::clear_detail): Update.
+       (init_content_element): Remove DATA_WIN case.  Add assert.
+       (tui_add_content_elements): Remove.
+       (tui_data_window): Update.
+       (tui_free_data_content): Remove.
+       (free_content_elements): Remove DATA_WIN case.
+
+2019-06-25  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-data.c (tui_data_item_window): Update.
+       * tui/tui-windata.h (tui_check_data_values): Don't declare.
+       * tui/tui-windata.c (tui_display_all_data)
+       (tui_display_data_from_line): Update.
+       (tui_check_data_values): Remove.
+       * tui/tui-regs.c (tui_show_register_group)
+       (tui_display_reg_element_at_line): Update.
+       * tui/tui-hooks.c (tui_register_changed)
+       (tui_refresh_frame_and_register_information): Call
+       tui_check_register_values.
+       * tui/tui-data.h (struct tui_data_window) <data_content,
+       data_content_count, data_type>: Remove.
+       (enum tui_data_type): Remove.
+
+       * tui/tui-data.c (tui_data_window::clear_detail)
+       (~tui_data_window): Update.
+
+2019-06-25  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-windata.h (tui_first_data_item_displayed): Don't
+       declare.
+       * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
+       Rename from tui_first_data_item_displayed.  Update.
+       (tui_data_window::refresh_all)
+       (tui_data_window::do_scroll_vertical): Update.
+       * tui/tui-data.h (struct tui_data_window)
+       <first_data_item_displayed>: Declare new method.
+
+2019-06-25  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-data.h (tui_init_generic_part): Don't declare.
+       * tui/tui-data.c (tui_init_generic_part): Remove, moving
+       contents...
+       (tui_initialize_static_data): ...here.
+
+2019-06-25  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
+       (tui_display_registers_from, tui_check_register_values): Update.
+       (tui_display_register): Remove win_info parameter; update.
+       (tui_get_register): Change type of parameters.
+       * tui/tui-data.h (struct tui_data_element): Remove.
+       (union tui_which_element) <data>: Remove.
+       <data_window>: Change type.
+       (struct tui_data_item_window): New.
+       * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
+       case.  Add assert.
+       (~tui_data_item_window): New destructor.
+       (free_content_elements): Remove DATA_ITEM_WIN case.
+
 2019-06-25  Tom Tromey  <tom@tromey.com>
 
        * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
This page took 0.028951 seconds and 4 git commands to generate.