* cli/cli-interp.c (cli_interpreter_resume): Update the
cli_uiout's stream to gdb_stdout.
This commit is contained in:
parent
dadd712e21
commit
38caaeec2b
|
@ -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>
|
2003-07-03 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
* gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
|
* gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
|
||||||
|
|
|
@ -53,8 +53,25 @@ cli_interpreter_init (void)
|
||||||
static int
|
static int
|
||||||
cli_interpreter_resume (void *data)
|
cli_interpreter_resume (void *data)
|
||||||
{
|
{
|
||||||
|
struct ui_file *stream;
|
||||||
|
|
||||||
/*sync_execution = 1; */
|
/*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 ();
|
gdb_setup_readline ();
|
||||||
|
|
||||||
|
if (stream != NULL)
|
||||||
|
cli_out_set_stream (cli_uiout, gdb_stdout);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue