* serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
This commit is contained in:
parent
256364e93a
commit
0db5a6fe3f
@ -1,3 +1,7 @@
|
||||
Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
|
||||
|
||||
* serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
|
||||
|
||||
Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
|
||||
|
26
gdb/serial.c
26
gdb/serial.c
@ -50,11 +50,11 @@ serial_log_command (cmd)
|
||||
{
|
||||
if (serial_reading || serial_writing)
|
||||
{
|
||||
fputc ('\n', serial_logfp);
|
||||
fputc_unfiltered ('\n', serial_logfp);
|
||||
serial_reading = 0;
|
||||
serial_writing = 0;
|
||||
}
|
||||
fprintf (serial_logfp, "c %s\n", cmd);
|
||||
fprintf_unfiltered (serial_logfp, "c %s\n", cmd);
|
||||
/* Make sure that the log file is as up-to-date as possible,
|
||||
in case we are getting ready to dump core or something. */
|
||||
fflush (serial_logfp);
|
||||
@ -66,14 +66,14 @@ serial_logchar (ch)
|
||||
{
|
||||
switch (ch)
|
||||
{
|
||||
case '\\': fputs ("\\\\", serial_logfp); break;
|
||||
case '\b': fputs ("\\b", serial_logfp); break;
|
||||
case '\f': fputs ("\\f", serial_logfp); break;
|
||||
case '\n': fputs ("\\n", serial_logfp); break;
|
||||
case '\r': fputs ("\\r", serial_logfp); break;
|
||||
case '\t': fputs ("\\t", serial_logfp); break;
|
||||
case '\v': fputs ("\\v", serial_logfp); break;
|
||||
default: fprintf (serial_logfp, isprint (ch) ? "%c" : "\\x%02x", ch & 0xFF); break;
|
||||
case '\\': fputs_unfiltered ("\\\\", serial_logfp); break;
|
||||
case '\b': fputs_unfiltered ("\\b", serial_logfp); break;
|
||||
case '\f': fputs_unfiltered ("\\f", serial_logfp); break;
|
||||
case '\n': fputs_unfiltered ("\\n", serial_logfp); break;
|
||||
case '\r': fputs_unfiltered ("\\r", serial_logfp); break;
|
||||
case '\t': fputs_unfiltered ("\\t", serial_logfp); break;
|
||||
case '\v': fputs_unfiltered ("\\v", serial_logfp); break;
|
||||
default: fprintf_unfiltered (serial_logfp, isprint (ch) ? "%c" : "\\x%02x", ch & 0xFF); break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -89,7 +89,7 @@ serial_write (scb, str, len)
|
||||
{
|
||||
if (serial_reading)
|
||||
{
|
||||
fputc ('\n', serial_logfp);
|
||||
fputc_unfiltered ('\n', serial_logfp);
|
||||
serial_reading = 0;
|
||||
}
|
||||
if (!serial_writing)
|
||||
@ -121,7 +121,7 @@ serial_readchar (scb, timeout)
|
||||
{
|
||||
if (serial_writing)
|
||||
{
|
||||
fputc ('\n', serial_logfp);
|
||||
fputc_unfiltered ('\n', serial_logfp);
|
||||
serial_writing = 0;
|
||||
}
|
||||
if (!serial_reading)
|
||||
@ -270,7 +270,7 @@ serial_close(scb, really_close)
|
||||
{
|
||||
if (serial_reading || serial_writing)
|
||||
{
|
||||
fputc ('\n', serial_logfp);
|
||||
fputc_unfiltered ('\n', serial_logfp);
|
||||
serial_reading = 0;
|
||||
serial_writing = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user