From 22e8e3c7c5de936aaf30ff85a967a19137206b6d Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Mon, 2 Feb 2004 16:12:49 +0000 Subject: [PATCH] Reviewed and approved by cagney@redhat.com. 2004-02-02 Fred Fish * main.c (gdb_stdtarg): Move definition to group with other gdb_stdtarg definitions. * remote-sim.c (gdb_os_write_stderr): Write output to gdb_stdtargerr stream instead of gdb_stdtarg stream. (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of gdb_stderr stream. --- gdb/ChangeLog | 9 +++++++++ gdb/main.c | 2 +- gdb/remote-sim.c | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1c331b7802f..13c2ba8bd66 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2004-02-02 Fred Fish + + * main.c (gdb_stdtarg): Move definition to group with other + gdb_stdtarg definitions. + * remote-sim.c (gdb_os_write_stderr): Write output to + gdb_stdtargerr stream instead of gdb_stdtarg stream. + (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of + gdb_stderr stream. + 2004-02-01 Daniel Jacobowitz * Makefile.in (mips-linux-nat.o): Update dependencies. diff --git a/gdb/main.c b/gdb/main.c index 303bf1c233b..e199a10d2fb 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -72,10 +72,10 @@ char *gdb_sysroot = 0; struct ui_file *gdb_stdout; struct ui_file *gdb_stderr; struct ui_file *gdb_stdlog; -struct ui_file *gdb_stdtarg; struct ui_file *gdb_stdin; /* target IO streams */ struct ui_file *gdb_stdtargin; +struct ui_file *gdb_stdtarg; struct ui_file *gdb_stdtargerr; /* Whether to enable writing into executable and core files */ diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index b1dc94e0cac..243a3ae5a3d 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -221,7 +221,7 @@ gdb_os_write_stderr (host_callback *p, const char *buf, int len) { b[0] = buf[i]; b[1] = 0; - fputs_unfiltered (b, gdb_stdtarg); + fputs_unfiltered (b, gdb_stdtargerr); } return len; } @@ -231,7 +231,7 @@ gdb_os_write_stderr (host_callback *p, const char *buf, int len) static void gdb_os_flush_stderr (host_callback *p) { - gdb_flush (gdb_stderr); + gdb_flush (gdb_stdtargerr); } /* GDB version of printf_filtered callback. */ -- 2.30.2