aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/tui/tui-data.h5
-rw-r--r--gdb/tui/tui-stack.h5
3 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ec87edf..662e6b9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index 3c14b26..5e7a122 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -62,10 +62,7 @@ public:
virtual void make_visible (bool visible);
/* Return the name of this type of window. */
- virtual const char *name () const
- {
- return "";
- }
+ virtual const char *name () const = 0;
/* Compute the maximum height of this window. */
virtual int max_height () const;
diff --git a/gdb/tui/tui-stack.h b/gdb/tui/tui-stack.h
index 564ac22..9ff57b1 100644
--- a/gdb/tui/tui-stack.h
+++ b/gdb/tui/tui-stack.h
@@ -32,6 +32,11 @@ struct tui_locator_window : public tui_win_info
{
tui_locator_window () = default;
+ const char *name () const override
+ {
+ return STATUS_NAME;
+ }
+
int max_height () const override
{
return 1;