aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-regs.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-07-02 15:51:00 -0600
committerTom Tromey <tom@tromey.com>2019-07-17 12:19:23 -0600
commit96bd6233af7c01885de4f4de3a4016014d61d859 (patch)
treed0773a4cf0265a095129bfec7db2113150c3b4e9 /gdb/tui/tui-regs.h
parentce38393b1abc2573d6521d11ab1fbfb5a28e5109 (diff)
downloadgdb-96bd6233af7c01885de4f4de3a4016014d61d859.zip
gdb-96bd6233af7c01885de4f4de3a4016014d61d859.tar.gz
gdb-96bd6233af7c01885de4f4de3a4016014d61d859.tar.bz2
Move TUI data item window to tui-regs.h
The TUI data item window is only used by the TUI register window. So, this patch moves the relevant code to tui-regs.[ch]. gdb/ChangeLog 2019-07-17 Tom Tromey <tom@tromey.com> * tui/tui-regs.h (struct tui_data_item_window): Move from tui-data.h. * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c. * tui/tui-data.h (struct tui_data_item_window): Move to tui-regs.h. * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
Diffstat (limited to 'gdb/tui/tui-regs.h')
-rw-r--r--gdb/tui/tui-regs.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/gdb/tui/tui-regs.h b/gdb/tui/tui-regs.h
index acefa41..0646729 100644
--- a/gdb/tui/tui-regs.h
+++ b/gdb/tui/tui-regs.h
@@ -24,6 +24,25 @@
#include "tui/tui-data.h"
+/* A data item window. */
+
+struct tui_data_item_window : public tui_gen_win_info
+{
+ tui_data_item_window ()
+ : tui_gen_win_info (DATA_ITEM_WIN)
+ {
+ }
+
+ ~tui_data_item_window () override;
+
+ const char *name = nullptr;
+ /* The register number, or data display number. */
+ int item_no = -1;
+ void *value = nullptr;
+ bool highlight = false;
+ char *content = nullptr;
+};
+
/* The TUI registers window. */
struct tui_data_window : public tui_win_info
{