diff options
author | Pedro Alves <palves@redhat.com> | 2010-04-09 14:40:48 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-04-09 14:40:48 +0000 |
commit | 623ccd7217323abfaf9bca502fcba987d0d33999 (patch) | |
tree | 7536f5894642488db2cf07f67f2128409be40301 /gdb/gdbserver | |
parent | 3d540e936bbc1b6971acd7bbb623b92a704f537e (diff) | |
download | gdb-623ccd7217323abfaf9bca502fcba987d0d33999.zip gdb-623ccd7217323abfaf9bca502fcba987d0d33999.tar.gz gdb-623ccd7217323abfaf9bca502fcba987d0d33999.tar.bz2 |
* tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/tracepoint.c | 7 |
2 files changed, 8 insertions, 3 deletions
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 <pedro@codesourcery.com> + + * tracepoint.c (cmd_qtstatus): Report trace buffer circularity. + 2010-04-09 Stan Shebs <stan@codesourcery.com> Pedro Alves <pedro@codesourcery.com> 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. */ |