aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-02-24 14:46:48 +0000
committerPedro Alves <palves@redhat.com>2012-02-24 14:46:48 +0000
commit277e4e52359c0e04b388a2b351e8d6ea14fefc5f (patch)
treec1ee41b686d23b84b071f9f34bf4ad1c3549201a /gdb
parent5b3d386eed68db38fda170cb48b54ce1baa86baa (diff)
downloadgdb-277e4e52359c0e04b388a2b351e8d6ea14fefc5f.zip
gdb-277e4e52359c0e04b388a2b351e8d6ea14fefc5f.tar.gz
gdb-277e4e52359c0e04b388a2b351e8d6ea14fefc5f.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog7
-rw-r--r--gdb/gdbserver/tracepoint.c24
2 files changed, 16 insertions, 15 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 3208e31..aa9f556 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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 ...
diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c
index 5c565fe..cd58c2d 100644
--- a/gdb/gdbserver/tracepoint.c
+++ b/gdb/gdbserver/tracepoint.c
@@ -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)