aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-data.c11
-rw-r--r--gdb/tui/tui-data.h19
-rw-r--r--gdb/tui/tui-regs.c9
-rw-r--r--gdb/tui/tui-regs.h19
4 files changed, 28 insertions, 30 deletions
diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c
index 5e75516..8977e8f 100644
--- a/gdb/tui/tui-data.c
+++ b/gdb/tui/tui-data.c
@@ -333,14 +333,3 @@ tui_source_window_base::~tui_source_window_base ()
xfree (fullname);
delete execution_info;
}
-
-/**********************************
-** LOCAL STATIC FUNCTIONS **
-**********************************/
-
-
-tui_data_item_window::~tui_data_item_window ()
-{
- xfree (value);
- xfree (content);
-}
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index a847f2a..e66adc1 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -249,25 +249,6 @@ struct tui_locator_window : public tui_gen_win_info
struct gdbarch *gdbarch = nullptr;
};
-/* 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;
-};
-
/* This defines information about each logical window. */
struct tui_win_info : public tui_gen_win_info
{
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 2470478..c13a5b1 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -53,6 +53,15 @@ static void tui_get_register (struct frame_info *frame,
struct tui_data_item_window *data,
int regnum, bool *changedp);
+
+/* See tui-regs.h. */
+
+tui_data_item_window::~tui_data_item_window ()
+{
+ xfree (value);
+ xfree (content);
+}
+
/* See tui-regs.h. */
int
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
{