From 1206c6599d41da0ced4f0422f4b0081bf73bdf3b Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 14 Jan 1999 23:40:25 +0000 Subject: [PATCH] fix stream arguments to fprintf_unfiltered, gdb_flush, print_address_numeric, and fwrite. --- gdb/ChangeLog | 11 +++++++++++ gdb/remote-mm.c | 2 +- gdb/remote-udi.c | 4 ++-- gdb/symmisc.c | 12 ++++++------ 4 files changed, 20 insertions(+), 9 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 897342f..0eb69b1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,14 @@ +Thu Jan 14 18:29:17 1999 David Taylor + +start-sanitize-carp start-sanitize-vr4xxx + * mips-tdep.c (mips_gdbarch_init): fix stream arg in + fprintf_unfiltered calls. +end-sanitize-carp end-sanitize-vr4xxx + * remote-mm.c (mm_wait): fix stream arg to gdb_flush. + * remote-udi.c (udi_wait): fix stream arg to fwrite. + * symmisc.c (maintenance_check_symtabs): fix stream argument to + print_address_numeric. + Wed Jan 13 19:33:16 1999 David Taylor * breakpoint.c (insert_breakpoints): insert cast to eliminate diff --git a/gdb/remote-mm.c b/gdb/remote-mm.c index c10f97e..0e5828c 100644 --- a/gdb/remote-mm.c +++ b/gdb/remote-mm.c @@ -542,7 +542,7 @@ mm_wait (status) i=in_msg_buf->channel1_msg.length; in_msg_buf->channel1_msg.data[i] = '\0'; printf("%s", in_msg_buf->channel1_msg.data); - gdb_flush(stdout); + gdb_flush(gdb_stdout); /* Send CHANNEL1_ACK message */ out_msg_buf->channel1_ack_msg.code = CHANNEL1_ACK; out_msg_buf->channel1_ack_msg.length = 0; diff --git a/gdb/remote-udi.c b/gdb/remote-udi.c index bbfe0bd..da982ce 100644 --- a/gdb/remote-udi.c +++ b/gdb/remote-udi.c @@ -453,13 +453,13 @@ udi_wait (pid, status) a whole bunch of output (more than SBUF_MAX, I would guess). It doesn't seem to happen with the simulator. */ warning ("UDIGetStdout() failed in udi_wait"); - fwrite (sbuf, 1, CountDone, gdb_stdout); + fwrite (sbuf, 1, CountDone, stdout); gdb_flush(gdb_stdout); continue; case UDIStderrReady: UDIGetStderr (sbuf, (UDISizeT)SBUF_MAX, &CountDone); - fwrite (sbuf, 1, CountDone, gdb_stderr); + fwrite (sbuf, 1, CountDone, stderr); gdb_flush(gdb_stderr); continue; diff --git a/gdb/symmisc.c b/gdb/symmisc.c index db13aa8..c876e4b 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -1017,9 +1017,9 @@ maintenance_check_symtabs (ignore, from_tty) printf_filtered ("Psymtab "); puts_filtered (ps->filename); printf_filtered (" covers bad range "); - print_address_numeric (ps->textlow, 1, stdout); + print_address_numeric (ps->textlow, 1, gdb_stdout); printf_filtered (" - "); - print_address_numeric (ps->texthigh, 1, stdout); + print_address_numeric (ps->texthigh, 1, gdb_stdout); printf_filtered ("\n"); continue; } @@ -1030,13 +1030,13 @@ maintenance_check_symtabs (ignore, from_tty) printf_filtered ("Psymtab "); puts_filtered (ps->filename); printf_filtered (" covers "); - print_address_numeric (ps->textlow, 1, stdout); + print_address_numeric (ps->textlow, 1, gdb_stdout); printf_filtered (" - "); - print_address_numeric (ps->texthigh, 1, stdout); + print_address_numeric (ps->texthigh, 1, gdb_stdout); printf_filtered (" but symtab covers only "); - print_address_numeric (BLOCK_START (b), 1, stdout); + print_address_numeric (BLOCK_START (b), 1, gdb_stdout); printf_filtered (" - "); - print_address_numeric (BLOCK_END (b), 1, stdout); + print_address_numeric (BLOCK_END (b), 1, gdb_stdout); printf_filtered ("\n"); } } -- 2.7.4