[gdb/tui,c++17] Fix NULL string_view in tui_partial_win_by_name
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index ddd831e7311ce7d8473ca7aa66a44da8cefaa1bc..b802641c9d2777cce13c4d81d5dbcfa033dbdcfc 100644 (file)
@@ -1,3 +1,183 @@
+2020-07-06  Tom de Vries  <tdevries@suse.de>
+
+       PR tui/26205
+       * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
+
+2020-07-05  Tom de Vries  <tdevries@suse.de>
+
+       PR build/26187
+       * inferior.h (struct infcall_suspend_state_deleter): If available, use
+       std::uncaught_exceptions instead of deprecated
+       std::uncaught_exception.
+
+2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * macroexp.h (macro_stringify): Return
+       gdb::unique_xmalloc_ptr<char>.
+       * macroexp.c (macro_stringify): Likewise.
+       * macrotab.c (fixup_definition): Update.
+
+2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * c-exp.y (scan_macro_expansion): Don't free `expansion`.
+       (lex_one_token): Update.
+       * macroexp.c (struct macro_buffer) <release>: Return
+       gdb::unique_xmalloc_ptr<char>.
+       (macro_stringify): Update.
+       (macro_expand): Update.
+       (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
+       * macroexp.h (macro_expand_next): Likewise.
+
+2020-07-02  Simon Marchi  <simon.marchi@efficios.com>
+
+       * macroexp.h (macro_lookup_ftype): Remove.
+       (macro_expand, macro_expand_once, macro_expand_next): Remove
+       lookup function parameters, add scope parameter.
+       * macroexp.c (scan, substitute_args, expand, maybe_expand,
+       macro_expand, macro_expand_once, macro_expand_next): Likewise.
+       * macroscope.h (standard_macro_lookup): Change parameter type
+       to macro_scope.
+       * macroscope.c (standard_macro_lookup): Likewise.
+       * c-exp.y (lex_one_token): Update.
+       * macrocmd.c (macro_expand_command): Likewise.
+       (macro_expand_once_command): Likewise.
+
+2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * inf-loop.c (inferior_event_handler): Remove client_data param.
+       * inf-loop.h (inferior_event_handler): Likewise.
+       * infcmd.c (step_1): Adjust.
+       * infrun.c (proceed): Adjust.
+       (fetch_inferior_event): Remove client_data param.
+       (infrun_async_inferior_event_handler): Adjust.
+       * infrun.h (fetch_inferior_event): Remove `void *` param.
+       * linux-nat.c (handle_target_event): Adjust.
+       * record-btrace.c (record_btrace_handle_async_inferior_event):
+       Adjust.
+       * record-full.c (record_full_async_inferior_event_handler):
+       Adjust.
+       * remote.c (remote_async_inferior_event_handler): Adjust.
+
+2020-07-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
+       * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
+
+2020-07-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
+       tui_gen_win_info.
+       (tui_win_info::make_window): Merge with
+       tui_gen_win_info::make_window.
+       (tui_win_info::make_visible): Move from tui_gen_win_info.
+       * tui/tui-win.c (tui_win_info::max_width): Move from
+       tui_gen_win_info.
+       * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
+       type.
+       <window_factory>: Likewise.
+       * tui/tui-layout.c (tui_win_info::resize): Move from
+       tui_gen_win_info.
+       (make_standard_window): Change return type.
+       (get_locator_window, tui_get_window_by_name): Likewise.
+       (tui_layout_window::apply): Remove a cast.
+       * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
+       (struct tui_win_info): Merge with tui_gen_win_info.
+       (struct tui_gen_win_info): Remove.
+
+2020-07-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-stack.h (struct tui_locator_window): Derive from
+       tui_win_info.
+       <do_scroll_horizontal, do_scroll_vertical>: New methods.
+       <can_box>: New method.
+
+2020-07-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-stack.h (struct tui_locator_window): Remove body.
+
+2020-07-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-regs.c (tui_data_window::display_registers_from)
+       (tui_data_window::display_registers_from)
+       (tui_data_window::first_data_item_displayed)
+       (tui_data_window::delete_data_content_windows): Update.
+       (tui_data_window::refresh_window, tui_data_window::no_refresh):
+       Remove.
+       (tui_data_window::check_register_values): Update.
+       (tui_data_item_window::rerender): Add parameters.  Update.
+       (tui_data_item_window::refresh_window): Remove.
+       * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
+       virtual.
+       * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
+       tui_gen_win_info.
+       <refresh_window, max_height, min_height>: Remove.
+       <rerender>: Add parameters.
+       <x, y, visible>: New members.
+       (struct tui_data_window) <refresh_window, no_refresh>: Remove.
+       <m_item_width>: New member.
+
+2020-07-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-regs.c (tui_data_window::show_register_group)
+       (tui_data_window::check_register_values): Update.
+       * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
+       from item_no.
+
+2020-07-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-regs.c (tui_data_window::show_register_group): Remove
+       useless "if".
+
+2020-07-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-regs.c (tui_data_window::show_register_group): Update.
+       * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
+
+2020-07-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
+       * tui/tui-winsource.h (enum tui_line_or_address_kind)
+       (struct tui_line_or_address): Move from tui-data.h.
+       * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
+       * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
+       (tui_cmd_window, tui_source_window_base, tui_source_window)
+       (tui_disasm_window): Don't declare.
+       (enum tui_line_or_address_kind, struct tui_line_or_address): Move
+       to tui-winsource.h.
+       (SINGLE_KEY): Move to tui-stack.c.
+
+2020-07-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
+       std::string.
+       * tui/tui-regs.c (class tab_expansion_file): New.
+       (tab_expansion_file::write): New method.
+       (tui_register_format): Change return type.  Use
+       tab_expansion_file.
+       (tui_get_register, tui_data_window::display_registers_from)
+       (tui_data_item_window::rerender): Update.
+       * tui/tui-io.h (tui_expand_tabs): Don't declare.
+       * tui/tui-io.c (tui_expand_tabs): Remove.
+
+2020-07-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
+
+2020-07-01  Fangrui Song  <maskray@google.com>
+
+       * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
+
+2020-07-01  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
+
+       * dwarf2/read.c (set_die_type): Removed conditions to restrict
+       forms for DW_AT_associated and DW_AT_allocated attributes,
+       which is already checked in function attr_to_dynamic_prop.
+
+2020-06-30  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2/read.c (quirk_rust_enum): Correctly call
+       alloc_rust_variant for default-less enum.
+
 2020-06-30  Tom Tromey  <tromey@adacore.com>
 
        PR build/26183:
This page took 0.028701 seconds and 4 git commands to generate.