* tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
authorPedro Alves <palves@redhat.com>
Fri, 9 Apr 2010 14:40:48 +0000 (14:40 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 9 Apr 2010 14:40:48 +0000 (14:40 +0000)
gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c

index 447714b0e34de4c135306284ba5426a0da459437..fe88bf55100bbeca7a6cfe7988fac12804e9e41f 100644 (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>
 
index 411f2b6273b03f3bcb145462acbefb5295b8ed6d..df378ff4bb854d3442bfd3288d62062add968739 100644 (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.  */