From 0db5a6fe3ff80b30dfab765bddf01bd4ea5f05b7 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Thu, 1 Feb 1996 04:15:53 +0000 Subject: [PATCH] * serial.c: Change fputc/fputs/fprintf to _unfiltered forms. --- gdb/ChangeLog | 4 ++++ gdb/serial.c | 26 +++++++++++++------------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d4ffb70fa40..cd8a21e4711 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Wed Jan 31 19:01:28 1996 Fred Fish + + * serial.c: Change fputc/fputs/fprintf to _unfiltered forms. + Wed Jan 31 18:36:27 1996 Stan Shebs * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove. diff --git a/gdb/serial.c b/gdb/serial.c index c984d7ae56f..6902648a19c 100644 --- a/gdb/serial.c +++ b/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; } -- 2.30.2