aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2000-02-01 03:19:29 +0000
committerJason Molenda <jmolenda@apple.com>2000-02-01 03:19:29 +0000
commitda59e08184255e09e51e54bb356e4448d33b2245 (patch)
tree7b31845d077b659d43f8a6597270e121c75f77e4 /gdb/main.c
parent557537a5563f40d36fb91d03551da70f4b0faf34 (diff)
downloadgdb-da59e08184255e09e51e54bb356e4448d33b2245.zip
gdb-da59e08184255e09e51e54bb356e4448d33b2245.tar.gz
gdb-da59e08184255e09e51e54bb356e4448d33b2245.tar.bz2
import gdb-2000-01-31 snapshot
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/gdb/main.c b/gdb/main.c
index 1eb36ae..7ccc47f 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -33,6 +33,11 @@
#include "gdb_string.h"
#include "event-loop.h"
+#if defined (TUI) || defined (GDBTK)
+/* FIXME: cagney/2000-01-31: This #include is to allow older code such
+ as that found in the TUI to continue to build. */
+#include "tui/tui-file.h"
+#endif
/* If nonzero, display time usage both at startup and for each command. */
@@ -187,17 +192,19 @@ captured_main (void *data)
getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
current_directory = gdb_dirbuf;
-#if 0
- /* not yet */
- gdb_stdout = stdio_fileopen (stdout);
- gdb_stderr = stdio_fileopen (stderr);
- gdb_stdlog = gdb_stderr; /* for moment */
- gdb_stdtarg = gdb_stderr; /* for moment */
-#else
+#if defined (TUI) || defined (GDBTK)
+ /* Older code uses the tui_file and fputs_unfiltered_hook(). It
+ should be using a customized GDB_FILE object and re-initializing
+ within its own _initialize function. */
gdb_stdout = tui_fileopen (stdout);
gdb_stderr = tui_fileopen (stderr);
gdb_stdlog = gdb_stdout; /* for moment */
gdb_stdtarg = gdb_stderr; /* for moment */
+#else
+ gdb_stdout = stdio_fileopen (stdout);
+ gdb_stderr = stdio_fileopen (stderr);
+ gdb_stdlog = gdb_stderr; /* for moment */
+ gdb_stdtarg = gdb_stderr; /* for moment */
#endif
/* initialize error() */