* configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
[deliverable/binutils-gdb.git] / gdb / remote-os9k.c
index e6bf3453076f49b8c336218769b8127d004789cb..0a703ebd3a5837f7cbcb054854275441c4d0393f 100644 (file)
@@ -1,6 +1,7 @@
 /* Remote debugging interface for boot monitors, for GDB.
-   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
-   2001 Free Software Foundation, Inc.
+
+   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999,
+   2000, 2001, 2002 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -100,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 */
@@ -379,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;
     }
 }
@@ -826,9 +828,8 @@ rombug_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
 
 static int
 rombug_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
-                            int write, 
-                            struct mem_attrib *attrib ATTRIBUTE_UNUSED,
-                            struct target_ops *target ATTRIBUTE_UNUSED)
+                            int write, struct mem_attrib *attrib,
+                            struct target_ops *target)
 {
   if (write)
     return rombug_write_inferior_memory (memaddr, myaddr, len);
@@ -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;
This page took 0.024495 seconds and 4 git commands to generate.