Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix compilation of tui/tui.c
@ 2004-02-28 15:03 Mark Kettenis
  2004-02-28 15:20 ` Andrew Cagney
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Kettenis @ 2004-02-28 15:03 UTC (permalink / raw)
  To: gdb-patches

Ouch.  We have serious portability problems with the TUI.  We should
either disable it again before the 6.1 release, or be prepared to
release 6.1.1 if any build problems come up.  I'm sure we'll see build
problems on many systems that we don't regularly test.

Anyway, I committed the attached such that FreeBSD (and probably the
other BSD's work again/.

Mark


Index: ChangeLog
from  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".

Index: tui/tui.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui.c,v
retrieving revision 1.48
diff -u -p -r1.48 tui.c
--- tui/tui.c 26 Feb 2004 02:08:04 -0000 1.48
+++ tui/tui.c 28 Feb 2004 14:59:29 -0000
@@ -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"
@@ -56,6 +55,11 @@
 #include <setjmp.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_ncurses.h".  */
+#include <readline/readline.h>
 
 /* Tells whether the TUI is active or not.  */
 int tui_active = 0;


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-02-29 14:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-28 15:03 [PATCH] Fix compilation of tui/tui.c Mark Kettenis
2004-02-28 15:20 ` Andrew Cagney
2004-02-28 15:48   ` Mark Kettenis
2004-02-28 16:59     ` Andrew Cagney
2004-02-29  6:10       ` Eli Zaretskii
2004-02-29 14:57         ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox