diff options
author | Tom Tromey <tom@tromey.com> | 2020-07-01 21:21:12 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-07-01 21:21:16 -0600 |
commit | 1eb2161f83babfad2f384efdadf49aa5c2f70860 (patch) | |
tree | 3331ccc38f392c68f7470db62df7f8a63fe6f34a | |
parent | 7134f2eb9230f86adb8839ac9cc737c7f4b47b59 (diff) | |
download | gdb-1eb2161f83babfad2f384efdadf49aa5c2f70860.zip gdb-1eb2161f83babfad2f384efdadf49aa5c2f70860.tar.gz gdb-1eb2161f83babfad2f384efdadf49aa5c2f70860.tar.bz2 |
Remove body of tui_locator_window constructor
The tui_locator_window constructor initializes the first character of
two of its members. However, this is actually an error, since these
were changed to be std::string. This removes the erroneous code.
gdb/ChangeLog
2020-07-01 Tom Tromey <tom@tromey.com>
* tui/tui-stack.h (struct tui_locator_window): Remove body.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/tui/tui-stack.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 37484e4..294e24f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 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) diff --git a/gdb/tui/tui-stack.h b/gdb/tui/tui-stack.h index fde7c6d..0253767 100644 --- a/gdb/tui/tui-stack.h +++ b/gdb/tui/tui-stack.h @@ -30,11 +30,7 @@ struct frame_info; struct tui_locator_window : public tui_gen_win_info { - tui_locator_window () - { - full_name[0] = 0; - proc_name[0] = 0; - } + tui_locator_window () = default; int max_height () const override { |