* tracepoint.c (cmd_qtstatus): Report trace buffer circularity.

This commit is contained in:
Pedro Alves 2010-04-09 14:40:48 +00:00
parent 3d540e936b
commit 623ccd7217
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2010-04-09 Pedro Alves <pedro@codesourcery.com>
* tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
2010-04-09 Stan Shebs <stan@codesourcery.com>
Pedro Alves <pedro@codesourcery.com>

View File

@ -1853,12 +1853,13 @@ cmd_qtstatus (char *packet)
convert_int_to_ascii ((gdb_byte *) result_name, p, strlen (result_name));
}
sprintf (packet, "T%c;%s:%x;tframes:%x;tcreated:%x;tfree:%x;tsize:%s",
(tracing ? '1' : '0'),
sprintf (packet, "T%d;%s:%x;tframes:%x;tcreated:%x;tfree:%x;tsize:%s;circular:%d",
tracing ? 1 : 0,
stop_reason_rsp, tracing_stop_tpnum,
traceframe_count, traceframes_created,
free_space (),
phex_nz (trace_buffer_hi - trace_buffer_lo, 0));
phex_nz (trace_buffer_hi - trace_buffer_lo, 0),
circular_trace_buffer);
}
/* State variables to help return all the tracepoint bits. */