X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=gdb%2Fremote-sim.c;h=74728376dc1b217c9125c32697a015edcfffd370;hb=4ce44c668ddc0a909c3f081d98c68bea90a93af9;hp=0c9d6761f3230d65f48e0f8287c1a968bb041229;hpb=2daf4fd8960262b76e597427e2e230b3fe6470b3;p=thirdparty%2Fbinutils-gdb.git 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); } }