aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-data.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-07-01 21:21:12 -0600
committerTom Tromey <tom@tromey.com>2020-07-01 21:21:13 -0600
commite555083f95748276ab7a229c46aa8d5c0ef9fbc4 (patch)
tree2cc2921db55180fb352ac9836e68ec7f13e02908 /gdb/tui/tui-data.h
parent7a02bab704afdc2c46e056da166eaaa025ff4b03 (diff)
downloadgdb-e555083f95748276ab7a229c46aa8d5c0ef9fbc4.zip
gdb-e555083f95748276ab7a229c46aa8d5c0ef9fbc4.tar.gz
gdb-e555083f95748276ab7a229c46aa8d5c0ef9fbc4.tar.bz2
Move some code out of tui-data.h
This moves some code out of tui-data.h, to more closely related places. Some unused forward declarations are also removed. gdb/ChangeLog 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.
Diffstat (limited to 'gdb/tui/tui-data.h')
-rw-r--r--gdb/tui/tui-data.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index 1accf36..d96384f 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -26,11 +26,6 @@
#include "gdb_curses.h" /* For WINDOW. */
#include "observable.h"
-struct tui_cmd_window;
-struct tui_source_window_base;
-struct tui_source_window;
-struct tui_disasm_window;
-
/* A deleter that calls delwin. */
struct curses_deleter
{
@@ -125,7 +120,6 @@ public:
};
/* Constant definitions. */
-#define DEFAULT_TAB_LEN 8
#define SRC_NAME "src"
#define CMD_NAME "cmd"
#define DATA_NAME "regs"
@@ -133,26 +127,6 @@ public:
#define STATUS_NAME "status"
#define MIN_WIN_HEIGHT 3
-/* Strings to display in the TUI status line. */
-#define SINGLE_KEY "(SingleKey)"
-
-enum tui_line_or_address_kind
-{
- LOA_LINE,
- LOA_ADDRESS
-};
-
-/* Structure describing source line or line address. */
-struct tui_line_or_address
-{
- enum tui_line_or_address_kind loa;
- union
- {
- int line_no;
- CORE_ADDR addr;
- } u;
-};
-
/* This defines information about each logical window. */
struct tui_win_info : public tui_gen_win_info
{