diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2002-09-10 19:59:31 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2002-09-10 19:59:31 +0000 |
commit | 2b68e2c5b9fcacc90385c8a750bddf5a7bd0bbe7 (patch) | |
tree | f6bea5b65a97f8f779385eab932d2b14e67c8219 /gdb/tui/tuiIO.c | |
parent | 99656a61405b59c6dec59fe8a88859f712a35c69 (diff) | |
download | gdb-2b68e2c5b9fcacc90385c8a750bddf5a7bd0bbe7.zip gdb-2b68e2c5b9fcacc90385c8a750bddf5a7bd0bbe7.tar.gz gdb-2b68e2c5b9fcacc90385c8a750bddf5a7bd0bbe7.tar.bz2 |
* tui-hooks.c (tui_event_loop): New function.
(tui_command_loop): New function to override gdb loop and make sure
uiout is set according to TUI mode.
(tui_command_loop): Install the specific TUI command hook.
* tuiIO.c (tui_initialize_io): Initialize tui_old_uiout.
(tui_uiout, tui_old_uiout): Make public.
* tuiIO.h (tui_uiout, tui_old_uiout): Declare.
Diffstat (limited to 'gdb/tui/tuiIO.c')
-rw-r--r-- | gdb/tui/tuiIO.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/tui/tuiIO.c b/gdb/tui/tuiIO.c index 01ebbe6..58df5d5 100644 --- a/gdb/tui/tuiIO.c +++ b/gdb/tui/tuiIO.c @@ -102,12 +102,12 @@ /* TUI output files. */ static struct ui_file *tui_stdout; static struct ui_file *tui_stderr; -static struct ui_out *tui_out; +struct ui_out *tui_out; /* GDB output files in non-curses mode. */ static struct ui_file *tui_old_stdout; static struct ui_file *tui_old_stderr; -static struct ui_out *tui_old_uiout; +struct ui_out *tui_old_uiout; /* Readline previous hooks. */ static Function *tui_old_rl_getc_function; @@ -578,7 +578,7 @@ tui_initialize_io () /* Create the default UI. It is not created because we installed a init_ui_hook. */ - uiout = cli_out_new (gdb_stdout); + tui_old_uiout = uiout = cli_out_new (gdb_stdout); #ifdef TUI_USE_PIPE_FOR_READLINE /* Temporary solution for readline writing to stdout: |