aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-hooks.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-04-09 13:54:34 +0000
committerMark Kettenis <kettenis@gnu.org>2004-04-09 13:54:34 +0000
commit4a1bcc8c13723e35a611eef9ad475791a3d4387b (patch)
treedf74631464a7b49b608af562a0adc47275380010 /gdb/tui/tui-hooks.c
parentf9a790643a2d0235e062b401dbec29bae25b9118 (diff)
downloadgdb-4a1bcc8c13723e35a611eef9ad475791a3d4387b.zip
gdb-4a1bcc8c13723e35a611eef9ad475791a3d4387b.tar.gz
gdb-4a1bcc8c13723e35a611eef9ad475791a3d4387b.tar.bz2
* tui/tui-hooks.c: Include "readline/readline.h" after
"gdb_curses.h" instead of before. * tui/tui-io.c: Likewise.
Diffstat (limited to 'gdb/tui/tui-hooks.c')
-rw-r--r--gdb/tui/tui-hooks.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c
index a864be2..a3a80dd 100644
--- a/gdb/tui/tui-hooks.c
+++ b/gdb/tui/tui-hooks.c
@@ -35,7 +35,6 @@
#include "gdb-events.h"
#include "ui-out.h"
#include "top.h"
-#include "readline/readline.h"
#include <unistd.h>
#include <fcntl.h>
@@ -52,6 +51,11 @@
#include "gdb_curses.h"
+/* This redefines CTRL if it is not already defined, so it must come
+ after terminal state releated include files like <term.h> and
+ "gdb_curses.h". */
+#include "readline/readline.h"
+
int tui_target_has_run = 0;
static void (* tui_target_new_objfile_chain) (struct objfile*);