aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-02-28 15:02:35 +0000
committerMark Kettenis <kettenis@gnu.org>2004-02-28 15:02:35 +0000
commit9671aeef937ebeafc0a44d2224a0cd76f3e9bfee (patch)
treeed7f56e45f3b9dda4653edfb3ae8b1831d2be2ff /gdb
parent72fd54a9667e569dcbeebe2e6f025255b62ec675 (diff)
downloadgdb-9671aeef937ebeafc0a44d2224a0cd76f3e9bfee.zip
gdb-9671aeef937ebeafc0a44d2224a0cd76f3e9bfee.tar.gz
gdb-9671aeef937ebeafc0a44d2224a0cd76f3e9bfee.tar.bz2
* tui/tui.c: Include <readline/readline.h> instead of
"readline/readline.h". Include it after <term.h> and "gdb_curses.h".
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/tui/tui.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 401e1ae..cd38e54 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2004-02-28 Mark Kettenis <kettenis@gnu.org>
+
+ * tui/tui.c: Include <readline/readline.h> instead of
+ "readline/readline.h". Include it after <term.h> and
+ "gdb_curses.h".
+
2004-02-27 Andrew Cagney <cagney@redhat.com>
* hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 2c12621..d2186a2 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -34,7 +34,6 @@
#include "tui/tui-win.h"
#include "tui/tui-winsource.h"
#include "tui/tui-windata.h"
-#include "readline/readline.h"
#include "target.h"
#include "frame.h"
#include "breakpoint.h"
@@ -57,6 +56,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_ncurses.h". */
+#include <readline/readline.h>
+
/* Tells whether the TUI is active or not. */
int tui_active = 0;
static int tui_finish_init = 1;