2002-04-24 Pierre Muller <ics.u-strasbg.fr>
authorPierre Muller <muller@sourceware.org>
Mon, 29 Apr 2002 11:01:13 +0000 (11:01 +0000)
committerPierre Muller <muller@sourceware.org>
Mon, 29 Apr 2002 11:01:13 +0000 (11:01 +0000)
* remote-array.c (printf_monitor, write_monitor,
array_insert_breakpoint, array_remove_breakpoint ):
Replace fprintf (stderr,...
with fprintf_unfiltered (gdb_stderr,....
* remote-es.c: Likewise.
* remote-os9k.c: Likewise.
* remote-st.c: Likewise.

gdb/ChangeLog
gdb/remote-array.c
gdb/remote-es.c
gdb/remote-os9k.c
gdb/remote-st.c

index e9d7da081d9edbb939fe4a323621430e8e5eb786..faa200f69bffd710caad3f663c9d4a5b6cccb017 100644 (file)
@@ -1,3 +1,13 @@
+2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
+
+       * remote-array.c (printf_monitor, write_monitor,
+       array_insert_breakpoint, array_remove_breakpoint ): 
+       Replace fprintf (stderr,...
+       with fprintf_unfiltered (gdb_stderr,....
+       * remote-es.c: Likewise.
+       * remote-os9k.c: Likewise.
+       * remote-st.c: Likewise.
+
 2002-04-28  Andreas Schwab  <schwab@suse.de>
 
        * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
index 204aaed40a4c8c9f2ac985fcb19619fadb1ea65c..ed0c40e44362e161304bd025d1a4d2a8374774d2 100644 (file)
@@ -193,7 +193,8 @@ printf_monitor (char *pattern,...)
   if (strlen (buf) > PBUFSIZ)
     error ("printf_monitor(): string too long");
   if (serial_write (array_desc, buf, strlen (buf)))
-    fprintf (stderr, "serial_write failed: %s\n", safe_strerror (errno));
+    fprintf_unfiltered (gdb_stderr, "serial_write failed: %s\n", 
+                       safe_strerror (errno));
 }
 /*
  * write_monitor -- send raw data to monitor.
@@ -202,7 +203,8 @@ static void
 write_monitor (char data[], int len)
 {
   if (serial_write (array_desc, data, len))
-    fprintf (stderr, "serial_write failed: %s\n", safe_strerror (errno));
+    fprintf_unfiltered (gdb_stderr, "serial_write failed: %s\n",
+                       safe_strerror (errno));
 
   *(data + len + 1) = '\0';
   debuglogs (1, "write_monitor(), Sending: \"%s\".", data);
@@ -1053,7 +1055,7 @@ array_insert_breakpoint (CORE_ADDR addr, char *shadow)
        }
     }
 
-  fprintf (stderr, "Too many breakpoints (> 16) for monitor\n");
+  fprintf_unfiltered (gdb_stderr, "Too many breakpoints (> 16) for monitor\n");
   return 1;
 }
 
@@ -1078,8 +1080,9 @@ array_remove_breakpoint (CORE_ADDR addr, char *shadow)
          return 0;
        }
     }
-  fprintf (stderr, "Can't find breakpoint associated with 0x%s\n",
-          paddr_nz (addr));
+  fprintf_unfiltered (gdb_stderr,
+                     "Can't find breakpoint associated with 0x%s\n",
+                     paddr_nz (addr));
   return 1;
 }
 
index dabbcd8b91f0660eb49e6cc38f55bc066c2a2e23..e489254bcc070f0e2d5c7062bb6e241700c0c8df 100644 (file)
@@ -1616,7 +1616,7 @@ send (char *string)
 {
   if (kiodebug)
     {
-      fprintf (stderr, "Sending: %s\n", string);
+      fprintf_unfiltered (gdb_stderr, "Sending: %s\n", string);
     }
   serial_write (es1800_desc, string, strlen (string));
 }
@@ -1663,7 +1663,7 @@ getmessage (char *buf, int len)
 
   if (kiodebug)
     {
-      fprintf (stderr, "message received :%s\n", buf);
+      fprintf_unfiltered (gdb_stderr, "message received :%s\n", buf);
     }
 }
 
index 2cedfb00527f5e5b4897bc4c392d32d0a9f5ebc9..0a703ebd3a5837f7cbcb054854275441c4d0393f 100644 (file)
@@ -101,7 +101,8 @@ printf_monitor (char *pattern,...)
   va_end (args);
 
   if (serial_write (monitor_desc, buf, strlen (buf)))
-    fprintf (stderr, "serial_write failed: %s\n", safe_strerror (errno));
+    fprintf_unfiltered (gdb_stderr, "serial_write failed: %s\n",
+                       safe_strerror (errno));
 }
 
 /* Read a character from the remote system, doing all the fancy timeout stuff */
@@ -380,9 +381,9 @@ rombug_close (int quitting)
   if (log_file)
     {
       if (ferror (log_file))
-       fprintf (stderr, "Error writing log file.\n");
+       fprintf_unfiltered (gdb_stderr, "Error writing log file.\n");
       if (fclose (log_file) != 0)
-       fprintf (stderr, "Error closing log file.\n");
+       fprintf_unfiltered (gdb_stderr, "Error closing log file.\n");
       log_file = 0;
     }
 }
@@ -883,7 +884,7 @@ rombug_insert_breakpoint (CORE_ADDR addr, char *shadow)
        return 0;
       }
 
-  fprintf (stderr, "Too many breakpoints (> 16) for monitor\n");
+  fprintf_unfiltered (gdb_stderr, "Too many breakpoints (> 16) for monitor\n");
   return 1;
 }
 
@@ -908,7 +909,8 @@ rombug_remove_breakpoint (CORE_ADDR addr, char *shadow)
        return 0;
       }
 
-  fprintf (stderr, "Can't find breakpoint associated with 0x%x\n", addr);
+  fprintf_unfiltered (gdb_stderr,
+                     "Can't find breakpoint associated with 0x%x\n", addr);
   return 1;
 }
 
@@ -949,7 +951,9 @@ rombug_load (char *arg)
 
       if (serial_write (monitor_desc, buf, bytes_read))
        {
-         fprintf (stderr, "serial_write failed: (while downloading) %s\n", safe_strerror (errno));
+         fprintf_unfiltered (gdb_stderr,
+                             "serial_write failed: (while downloading) %s\n",
+                             safe_strerror (errno));
          break;
        }
       i = 0;
index 46d8eab15a261cbc432837a3c2249f126fb126dc..c27ddebbf3be7e3dd7535f0698891de4a289d6dd 100644 (file)
@@ -79,7 +79,8 @@ printf_stdebug (char *pattern,...)
   va_end (args);
 
   if (serial_write (st2000_desc, buf, strlen (buf)))
-    fprintf (stderr, "serial_write failed: %s\n", safe_strerror (errno));
+    fprintf_unfiltered (gdb_stderr, "serial_write failed: %s\n",
+                       safe_strerror (errno));
 }
 
 /* Read a character from the remote system, doing all the fancy timeout
@@ -324,9 +325,9 @@ st2000_close (int quitting)
   if (log_file)
     {
       if (ferror (log_file))
-       fprintf (stderr, "Error writing log file.\n");
+       fprintf_unfiltered (gdb_stderr, "Error writing log file.\n");
       if (fclose (log_file) != 0)
-       fprintf (stderr, "Error closing log file.\n");
+       fprintf_unfiltered (gdb_stderr, "Error closing log file.\n");
     }
 #endif
 }
@@ -616,7 +617,7 @@ st2000_insert_breakpoint (CORE_ADDR addr, char *shadow)
        return 0;
       }
 
-  fprintf (stderr, "Too many breakpoints (> 16) for STDBUG\n");
+  fprintf_unfiltered (gdb_stderr, "Too many breakpoints (> 16) for STDBUG\n");
   return 1;
 }
 
@@ -635,7 +636,8 @@ st2000_remove_breakpoint (CORE_ADDR addr, char *shadow)
        return 0;
       }
 
-  fprintf (stderr, "Can't find breakpoint associated with 0x%x\n", addr);
+  fprintf_unfiltered (gdb_stderr,
+                     "Can't find breakpoint associated with 0x%x\n", addr);
   return 1;
 }
 
This page took 0.030895 seconds and 4 git commands to generate.