From 22e8e3c7c5de936aaf30ff85a967a19137206b6d Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Mon, 2 Feb 2004 16:12:49 +0000 Subject: 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/remote-sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/remote-sim.c') diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index b1dc94e..243a3ae 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. */ -- cgit v1.1