From e2515a3df3a130d42e8abab3afa478549a2fb788 Mon Sep 17 00:00:00 2001 From: Martin Hunt Date: Thu, 5 Apr 2001 00:04:45 +0000 Subject: 2001-04-04 Martin M. Hunt * main.c (captured_main): For GDBtk, don't use tui_fileopen(). Handle all stream setup in gdbtk_init --- gdb/main.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gdb/main.c') diff --git a/gdb/main.c b/gdb/main.c index 00767e1c968..2b70712d130 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -35,7 +35,8 @@ #include "gdb_string.h" #include "event-loop.h" #include "ui-out.h" -#if defined (TUI) || defined (GDBTK) + +#if defined (TUI) /* 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" @@ -199,10 +200,7 @@ captured_main (void *data) getcwd (gdb_dirbuf, sizeof (gdb_dirbuf)); current_directory = gdb_dirbuf; -#if defined (TUI) || defined (GDBTK) - /* Older code uses the tui_file and fputs_unfiltered_hook(). It - should be using a customized UI_FILE object and re-initializing - within its own _initialize function. */ +#if defined (TUI) gdb_stdout = tui_fileopen (stdout); gdb_stderr = tui_fileopen (stderr); gdb_stdlog = gdb_stdout; /* for moment */ -- cgit v1.2.1