fix stream arguments to fprintf_unfiltered, gdb_flush, print_address_numeric,

and fwrite.
This commit is contained in:
David Taylor 1999-01-14 23:40:25 +00:00
parent dab43dfdcd
commit 1206c6599d
4 changed files with 20 additions and 9 deletions

View File

@ -1,3 +1,14 @@
Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
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 <taylor@texas.cygnus.com>
* breakpoint.c (insert_breakpoints): insert cast to eliminate

View File

@ -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;

View File

@ -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;

View File

@ -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");
}
}