2012-02-24 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Fri, 24 Feb 2012 14:46:48 +0000 (14:46 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 24 Feb 2012 14:46:48 +0000 (14:46 +0000)
* tracepoint.c (cmd_bigqtbuffer): Rename as ...
(cmd_bigqtbuffer_circular): ... this.  Only handle
'QTBuffer:circular:'.
(handle_tracepoint_general_set): Adjust.

gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c

index 3208e3152dfe028343ea187ebbf5b5d499b428b1..aa9f556297e28d5675d763136cae4b68ba9f0470 100644 (file)
@@ -1,3 +1,10 @@
+2012-02-24  Pedro Alves  <palves@redhat.com>
+
+       * tracepoint.c (cmd_bigqtbuffer): Rename as ...
+       (cmd_bigqtbuffer_circular): ... this.  Only handle
+       'QTBuffer:circular:'.
+       (handle_tracepoint_general_set): Adjust.
+
 2012-02-16  Yao Qi  <yao@codesourcery.com>
 
        * inferiors.c: Move code to ...
index 5c565fe4c8a47231f84e66a423d2376ac842d568..cd58c2d0d445b97334ca111d3c6577679f740dff 100644 (file)
@@ -3794,24 +3794,18 @@ cmd_qtbuffer (char *own_buf)
 }
 
 static void
-cmd_bigqtbuffer (char *own_buf)
+cmd_bigqtbuffer_circular (char *own_buf)
 {
   ULONGEST val;
   char *packet = own_buf;
 
-  packet += strlen ("QTBuffer:");
+  packet += strlen ("QTBuffer:circular:");
 
-  if (strncmp ("circular:", packet, strlen ("circular:")) == 0)
-    {
-      packet += strlen ("circular:");
-      unpack_varlen_hex (packet, &val);
-      circular_trace_buffer = val;
-      trace_debug ("Trace buffer is now %s",
-                  circular_trace_buffer ? "circular" : "linear");
-      write_ok (own_buf);
-    }
-  else
-    write_enn (own_buf);
+  unpack_varlen_hex (packet, &val);
+  circular_trace_buffer = val;
+  trace_debug ("Trace buffer is now %s",
+              circular_trace_buffer ? "circular" : "linear");
+  write_ok (own_buf);
 }
 
 static void
@@ -3930,9 +3924,9 @@ handle_tracepoint_general_set (char *packet)
       cmd_qtframe (packet);
       return 1;
     }
-  else if (strncmp ("QTBuffer:", packet, strlen ("QTBuffer:")) == 0)
+  else if (strncmp ("QTBuffer:circular:", packet, strlen ("QTBuffer:circular:")) == 0)
     {
-      cmd_bigqtbuffer (packet);
+      cmd_bigqtbuffer_circular (packet);
       return 1;
     }
   else if (strncmp ("QTNotes:", packet, strlen ("QTNotes:")) == 0)