diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-07-03 14:49:26 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-07-03 14:49:26 +0000 |
commit | 38caaeec2b1850b6b936b5caafc505c2ce74f079 (patch) | |
tree | 335f967813b85010000945f9858a08486c637e1b /gdb | |
parent | dadd712e2163158cb9ae3a56099a4d36d78bcbc6 (diff) | |
download | gdb-38caaeec2b1850b6b936b5caafc505c2ce74f079.zip gdb-38caaeec2b1850b6b936b5caafc505c2ce74f079.tar.gz gdb-38caaeec2b1850b6b936b5caafc505c2ce74f079.tar.bz2 |
* cli/cli-interp.c (cli_interpreter_resume): Update the
cli_uiout's stream to gdb_stdout.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/cli/cli-interp.c | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a4b9537..acc0bc1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-07-03 Daniel Jacobowitz <drow@mvista.com> + + * cli/cli-interp.c (cli_interpreter_resume): Update the + cli_uiout's stream to gdb_stdout. + 2003-07-03 Andrew Cagney <cagney@redhat.com> * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add diff --git a/gdb/cli/cli-interp.c b/gdb/cli/cli-interp.c index 45679f0..6abb24d 100644 --- a/gdb/cli/cli-interp.c +++ b/gdb/cli/cli-interp.c @@ -53,8 +53,25 @@ cli_interpreter_init (void) static int cli_interpreter_resume (void *data) { + struct ui_file *stream; + /*sync_execution = 1; */ + + /* gdb_setup_readline will change gdb_stdout. If the CLI was previously + writing to gdb_stdout, then set it to the new gdb_stdout afterwards. */ + + stream = cli_out_set_stream (cli_uiout, gdb_stdout); + if (stream != gdb_stdout) + { + cli_out_set_stream (cli_uiout, stream); + stream = NULL; + } + gdb_setup_readline (); + + if (stream != NULL) + cli_out_set_stream (cli_uiout, gdb_stdout); + return 1; } |