xmitcsum += hex(ch);
if ((remote_debug ) && (checksum != xmitcsum))
{
- fprintf_unfiltered(gdb_stderr,"bad checksum. My count = 0x%x, sent=0x%x. buf=%s\n",
+ fprintf(stderr,"bad checksum. My count = 0x%x, sent=0x%x. buf=%s\n",
checksum,xmitcsum,buffer);
}
{
if (remote_debug)
{
- fprintf_unfiltered (gdb_stderr, format, parm);
- fprintf_unfiltered (gdb_stderr, "\n");
+ fprintf (stderr, format, parm);
+ fprintf (stderr, "\n");
}
}
/* Create a screen for the debugger. */
console_screen = CreateScreen ("System Console", 0);
if (DisplayScreen (console_screen) != ESUCCESS)
- fprintf_unfiltered (gdb_stderr, "DisplayScreen failed\n");
+ fprintf (stderr, "DisplayScreen failed\n");
if (argc < 4)
{
- fprintf_unfiltered (gdb_stderr,
+ fprintf (stderr,
"Usage: load gdbserver board port program [arguments]\n");
exit (1);
}
switch (err)
{
case AIO_PORT_NOT_AVAILABLE:
- fprintf_unfiltered (gdb_stderr, "Port not available\n");
+ fprintf (stderr, "Port not available\n");
break;
case AIO_BOARD_NUMBER_INVALID:
case AIO_PORT_NUMBER_INVALID:
- fprintf_unfiltered (gdb_stderr, "No such port\n");
+ fprintf (stderr, "No such port\n");
break;
default:
- fprintf_unfiltered (gdb_stderr, "Could not open port: %d\n", err);
+ fprintf (stderr, "Could not open port: %d\n", err);
break;
}
AIO_HARDWARE_FLOW_CONTROL_OFF);
if (err != AIO_SUCCESS)
{
- fprintf_unfiltered (gdb_stderr, "Could not configure port: %d\n", err);
+ fprintf (stderr, "Could not configure port: %d\n", err);
AIOReleasePort (AIOhandle);
exit (1);
}
DebuggerSignature));
if (s.DDSResourceTag == 0)
{
- fprintf_unfiltered (gdb_stderr, "AllocateResourceTag failed\n");
+ fprintf (stderr, "AllocateResourceTag failed\n");
AIOReleasePort (AIOhandle);
exit (1);
}
err = RegisterDebuggerRTag (&s, AT_FIRST);
if (err != 0)
{
- fprintf_unfiltered (gdb_stderr, "RegisterDebuggerRTag failed\n");
+ fprintf (stderr, "RegisterDebuggerRTag failed\n");
AIOReleasePort (AIOhandle);
exit (1);
}
"$?#xx") sitting there. */
if (! putDebugChar ('+'))
{
- fprintf_unfiltered (gdb_stderr, "putDebugChar failed\n");
+ fprintf (stderr, "putDebugChar failed\n");
UnRegisterDebugger (&s);
AIOReleasePort (AIOhandle);
exit (1);
cmdlin, LO_DEBUG);
if (err != 0)
{
- fprintf_unfiltered (gdb_stderr, "LoadModule failed: %d\n", err);
+ fprintf (stderr, "LoadModule failed: %d\n", err);
UnRegisterDebugger (&s);
AIOReleasePort (AIOhandle);
exit (1);
/* If we are woken up, print an optional error message, deregister
ourselves and exit. */
if (error_message != NULL)
- fprintf_unfiltered (gdb_stderr, "%s\n", error_message);
+ fprintf (stderr, "%s\n", error_message);
UnRegisterDebugger (&s);
AIOReleasePort (AIOhandle);
exit (0);