This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Dummy first call to gdb_has_a_terminal()
I've forgotten to add an include file to the patch, so here's the revised patch:
Index: tui-interp.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-interp.c,v
retrieving revision 1.27
diff -c -p -r1.27 tui-interp.c
*** tui-interp.c 17 May 2010 22:21:43 -0000 1.27
--- tui-interp.c 18 Jul 2010 09:07:21 -0000
***************
*** 30,35 ****
--- 30,36 ----
#include "tui/tui.h"
#include "tui/tui-io.h"
#include "exceptions.h"
+ #include "terminal.h"
/* Set to 1 when the TUI mode must be activated when we first start
gdb. */
*************** _initialize_tui_interp (void)
*** 224,229 ****
--- 225,233 ----
tui_command_loop,
};
+ /* Dummy first call to save sane terminal settings. */
+ (void) gdb_has_a_terminal ();
+
/* Create a default uiout builder for the TUI. */
tui_out = tui_out_new (gdb_stdout);
interp_add (interp_new (INTERP_TUI, NULL, tui_out, &procs));