diff options
author | Jason Molenda <jsm@bugshack.cygnus.com> | 1999-11-17 02:31:06 +0000 |
---|---|---|
committer | Jason Molenda <jsm@bugshack.cygnus.com> | 1999-11-17 02:31:06 +0000 |
commit | e49ad2d1d5b90c08b47a628a1e68c591029a5a15 (patch) | |
tree | 9114b63ccfe6a79e820431e18c8de6f6d8dbc54d /gdb/remote-sim.c | |
parent | 5eae3750b9c334b4674593e17df0ac7a09b53ca0 (diff) | |
download | gdb-e49ad2d1d5b90c08b47a628a1e68c591029a5a15.tar.gz |
import gdb-1999-11-16 snapshot
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 0c9d6761f32..74728376dc1 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -194,12 +194,7 @@ gdb_os_write_stdout (p, buf, len) int i; char b[2]; - for (i = 0; i < len; i++) - { - b[0] = buf[i]; - b[1] = 0; - fputs_unfiltered (b, gdb_stdtarg); - } + gdb_file_write (gdb_stdtarg, buf, len); return len; } @@ -209,7 +204,7 @@ static void gdb_os_flush_stdout (p) host_callback *p; { - gdb_flush (gdb_stdout); + gdb_flush (gdb_stdtarg); } /* GDB version of os_write_stderr callback. */ @@ -281,12 +276,8 @@ gdb_os_error (host_callback * p, const char *format,...) { va_list args; va_start (args, format); - - error_begin (); - vfprintf_filtered (gdb_stderr, format, args); - fprintf_filtered (gdb_stderr, "\n"); + verror (format, args); va_end (args); - return_to_top_level (RETURN_ERROR); } } |