summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/main.c2
-rw-r--r--gdb/remote-sim.c4
3 files changed, 12 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1c331b7802..13c2ba8bd6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,12 @@
+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.
+
2004-02-01 Daniel Jacobowitz <drow@mvista.com>
* Makefile.in (mips-linux-nat.o): Update dependencies.
diff --git a/gdb/main.c b/gdb/main.c
index 303bf1c233..e199a10d2f 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 b1dc94e0ca..243a3ae5a3 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. */
OpenPOWER on IntegriCloud