+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
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.
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);
}
}
- fprintf (stderr, "Too many breakpoints (> 16) for monitor\n");
+ fprintf_unfiltered (gdb_stderr, "Too many breakpoints (> 16) for monitor\n");
return 1;
}
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;
}
{
if (kiodebug)
{
- fprintf (stderr, "Sending: %s\n", string);
+ fprintf_unfiltered (gdb_stderr, "Sending: %s\n", string);
}
serial_write (es1800_desc, string, strlen (string));
}
if (kiodebug)
{
- fprintf (stderr, "message received :%s\n", buf);
+ fprintf_unfiltered (gdb_stderr, "message received :%s\n", buf);
}
}
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 */
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;
}
}
return 0;
}
- fprintf (stderr, "Too many breakpoints (> 16) for monitor\n");
+ fprintf_unfiltered (gdb_stderr, "Too many breakpoints (> 16) for monitor\n");
return 1;
}
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;
}
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;
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
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
}
return 0;
}
- fprintf (stderr, "Too many breakpoints (> 16) for STDBUG\n");
+ fprintf_unfiltered (gdb_stderr, "Too many breakpoints (> 16) for STDBUG\n");
return 1;
}
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;
}