aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-stack.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-07-13 18:29:57 -0600
committerTom Tromey <tom@tromey.com>2019-08-20 16:45:50 -0600
commit973961bda3cdf79e4c0768a5a5fd4eb6ab4acad2 (patch)
tree55cc65493e37b5ca1f6e8f84ada2aaa6b27ba0cf /gdb/tui/tui-stack.c
parentab0e1f1a4507f91536b583c57a492cb9d3aaf6f2 (diff)
downloadgdb-973961bda3cdf79e4c0768a5a5fd4eb6ab4acad2.zip
gdb-973961bda3cdf79e4c0768a5a5fd4eb6ab4acad2.tar.gz
gdb-973961bda3cdf79e4c0768a5a5fd4eb6ab4acad2.tar.bz2
Move some defines to tui-stack.c
Some #defines in tui-data.h are only used in tui-stack.c, so move them there. 2019-08-20 Tom Tromey <tom@tromey.com> * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX) (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH) (MAX_PID_WIDTH): Move to tui-stack.c. * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX) (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH) (MAX_PID_WIDTH): Move from tui-data.h.
Diffstat (limited to 'gdb/tui/tui-stack.c')
-rw-r--r--gdb/tui/tui-stack.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c
index 001133c..0d41133 100644
--- a/gdb/tui/tui-stack.c
+++ b/gdb/tui/tui-stack.c
@@ -39,6 +39,18 @@
#include "gdb_curses.h"
+#define PROC_PREFIX "In: "
+#define LINE_PREFIX "L"
+#define PC_PREFIX "PC: "
+
+/* Minimum/Maximum length of some fields displayed in the TUI status
+ line. */
+#define MIN_LINE_WIDTH 4 /* Use at least 4 digits for line
+ numbers. */
+#define MIN_PROC_WIDTH 12
+#define MAX_TARGET_WIDTH 10
+#define MAX_PID_WIDTH 19
+
static struct tui_locator_window _locator;
/* Get a printable name for the function at the address.