This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Re-order TUI includes


This is similar to what I did some time ago for tui.c.  Without this
patch, GDB doesn't build on sparc-sun-solaris2.8.

Committed as obvious,

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>
 
	* tui/tui-hooks.c: Include "readline/readline.h" after
	"gdb_curses.h" instead of before.
	* tui/tui-io.c: Likewise.

 
Index: tui/tui-hooks.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-hooks.c,v
retrieving revision 1.20
diff -u -p -r1.20 tui-hooks.c
--- tui/tui-hooks.c 28 Feb 2004 18:04:37 -0000 1.20
+++ tui/tui-hooks.c 9 Apr 2004 13:48:29 -0000
@@ -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>
 
@@ -51,6 +50,11 @@
 #include "tui/tui-winsource.h"
 
 #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;
 
Index: tui/tui-io.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-io.c,v
retrieving revision 1.9
diff -u -p -r1.9 tui-io.c
--- tui/tui-io.c 10 Feb 2004 19:08:15 -0000 1.9
+++ tui/tui-io.c 9 Apr 2004 13:48:29 -0000
@@ -29,7 +29,6 @@
 #include "event-top.h"
 #include "command.h"
 #include "top.h"
-#include "readline/readline.h"
 #include "tui/tui.h"
 #include "tui/tui-data.h"
 #include "tui/tui-io.h"
@@ -44,6 +43,11 @@
 #include <stdio.h>
 
 #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
 key_is_start_sequence (int ch)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]