From: Pedro Alves Date: Fri, 9 Apr 2010 14:40:48 +0000 (+0000) Subject: * tracepoint.c (cmd_qtstatus): Report trace buffer circularity. X-Git-Tag: sid-snapshot-20100501~278 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=623ccd7217323abfaf9bca502fcba987d0d33999;p=platform%2Fupstream%2Fbinutils.git * tracepoint.c (cmd_qtstatus): Report trace buffer circularity. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 447714b..fe88bf5 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2010-04-09 Pedro Alves + + * tracepoint.c (cmd_qtstatus): Report trace buffer circularity. + 2010-04-09 Stan Shebs Pedro Alves diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index 411f2b6..df378ff 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -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. */