aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-interp.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-05-01 12:28:45 -0600
committerTom Tromey <tromey@adacore.com>2019-05-08 10:38:02 -0600
commitb0be6c912f9e901a87740c72f18be1e54ad5267d (patch)
treeeed5862b07cceb28adaf13108021243a7337a495 /gdb/tui/tui-interp.c
parent587ee17bd492a324c927437fb561b99b274e1d8e (diff)
downloadgdb-b0be6c912f9e901a87740c72f18be1e54ad5267d.zip
gdb-b0be6c912f9e901a87740c72f18be1e54ad5267d.tar.gz
gdb-b0be6c912f9e901a87740c72f18be1e54ad5267d.tar.bz2
Move interpreter_p declaration to main.h
This moves the interpreter_p declaration from defs.h to main.h. I think this makes more sense, as it is defined in main.c. Also, this declaration was in the wrong place -- between a comment and the things the comment described. gdb/ChangeLog 2019-05-08 Tom Tromey <tromey@adacore.com> * tui/tui-interp.c: Include main.h. * interps.c: Include main.h. * main.h (interpreter_p): Declare. * defs.h (interpreter_p): Don't declare.
Diffstat (limited to 'gdb/tui/tui-interp.c')
-rw-r--r--gdb/tui/tui-interp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c
index 14215b8..d1146fe 100644
--- a/gdb/tui/tui-interp.c
+++ b/gdb/tui/tui-interp.c
@@ -34,6 +34,7 @@
#include "observable.h"
#include "gdbthread.h"
#include "inferior.h"
+#include "main.h"
/* Set to 1 when the TUI mode must be activated when we first start
gdb. */