static bool remote_read_description_p (struct target_ops *target);
-static void remote_console_output (const char *msg);
+static void remote_console_output (const char *msg, ui_file *stream);
static void remote_btrace_reset (remote_state *rs);
}
}
else if (buf[0] == 'O' && buf[1] != 'K')
- remote_console_output (buf + 1); /* 'O' message from stub */
+ {
+ /* 'O' message from stub */
+ remote_console_output (buf + 1, gdb_stdtarg);
+ }
else
return buf; /* Here's the actual reply. */
}
}
static void
-remote_console_output (const char *msg)
+remote_console_output (const char *msg, ui_file *stream)
{
const char *p;
tb[0] = c;
tb[1] = 0;
- gdb_stdtarg->puts (tb);
+ stream->puts (tb);
}
- gdb_stdtarg->flush ();
+ stream->flush ();
}
/* Return the length of the stop reply queue. */
warning (_("Remote failure reply: %s"), rs->buf.data ());
break;
case 'O': /* Console output. */
- remote_console_output (&rs->buf[1]);
+ remote_console_output (&rs->buf[1], gdb_stdtarg);
break;
default:
warning (_("Invalid remote reply: %s"), rs->buf.data ());
break;
}
case 'O': /* Console output. */
- remote_console_output (buf + 1);
+ remote_console_output (buf + 1, gdb_stdtarg);
break;
case '\0':
if (rs->last_sent_signal != GDB_SIGNAL_0)
buf = rs->buf.data ();
if (buf[0] == 'O' && buf[1] != 'K')
{
- remote_console_output (buf + 1); /* 'O' message from stub. */
+ /* 'O' message from stub. */
+ remote_console_output (buf + 1, outbuf);
continue;
}
packet_result result = packet_check_result (buf, false);