Line 1847... |
Line 1847... |
sprintf (buf->data, "%02x%02x%02x%02x%02x%02x%02x%02x%02x",
|
sprintf (buf->data, "%02x%02x%02x%02x%02x%02x%02x%02x%02x",
|
'R', 'u', 'n', 'n', 'a', 'b', 'l', 'e', 0);
|
'R', 'u', 'n', 'n', 'a', 'b', 'l', 'e', 0);
|
buf->len = strlen (buf->data);
|
buf->len = strlen (buf->data);
|
put_packet (buf);
|
put_packet (buf);
|
}
|
}
|
|
else if (0 == strncmp ("qTStatus", buf->data, strlen ("qTStatus")))
|
|
{
|
|
/* Ask the stub if there is a trace experiment running right now.
|
|
The reply has the form:
|
|
`Trunning[;field]...'
|
|
running is a single digit 1 if the trace is presently running, or 0
|
|
if not. It is followed by semicolon-separated optional fields that an
|
|
agent may use to report additional status.
|
|
*/
|
|
put_str_packet ("T0");
|
|
}
|
|
else if ((0 == strncmp ("qTfV", buf->data, strlen ("qTfV"))) ||
|
|
(0 == strncmp ("qTsV", buf->data, strlen ("qTsV"))))
|
|
{
|
|
/*
|
|
These packets request data about trace state variables that are on the
|
|
target. gdb sends qTfV to get the first vari of data, and multiple qTsV
|
|
to get additional variables. Replies to these packets follow the syntax
|
|
of the QTDV packets that define trace state variables.
|
|
*/
|
|
put_str_packet ("");
|
|
}
|
|
else if (0 == strncmp ("qTfP", buf->data, strlen ("qTfP")))
|
|
{
|
|
/*
|
|
These packets request data about tracepoints that are being used by the
|
|
target. gdb sends qTfP to get the first piece of data, and multiple
|
|
qTsP to get additional pieces. Replies to these packets generally take
|
|
the form of the QTDP packets that define tracepoints. (FIXME add
|
|
detailed syntax)
|
|
*/
|
|
put_str_packet ("");
|
|
}
|
else if (0 == strncmp ("qXfer:", buf->data, strlen ("qXfer:")))
|
else if (0 == strncmp ("qXfer:", buf->data, strlen ("qXfer:")))
|
{
|
{
|
/* For now we support no 'qXfer' requests, but these should not be
|
/* For now we support no 'qXfer' requests, but these should not be
|
expected, since they were not reported by 'qSupported' */
|
expected, since they were not reported by 'qSupported' */
|
fprintf (stderr, "Warning: RSP 'qXfer' not supported: ignored\n");
|
fprintf (stderr, "Warning: RSP 'qXfer' not supported: ignored\n");
|