aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2004-02-02 16:12:49 +0000
committerFred Fish <fnf@specifix.com>2004-02-02 16:12:49 +0000
commit22e8e3c7c5de936aaf30ff85a967a19137206b6d (patch)
tree5e8935940f4f0df5fd7a45760411d4ec2a386acd /gdb/remote-sim.c
parent1cd348be86a4a84730a9603875a1b6baf459fe37 (diff)
downloadgdb-22e8e3c7c5de936aaf30ff85a967a19137206b6d.zip
gdb-22e8e3c7c5de936aaf30ff85a967a19137206b6d.tar.gz
gdb-22e8e3c7c5de936aaf30ff85a967a19137206b6d.tar.bz2
Reviewed and approved by cagney@redhat.com.
2004-02-02 Fred Fish <fnf@redhat.com> * 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.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r--gdb/remote-sim.c4
1 files changed, 2 insertions, 2 deletions
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. */