diff options
author | Pedro Alves <palves@redhat.com> | 2012-02-24 14:46:48 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-02-24 14:46:48 +0000 |
commit | 277e4e52359c0e04b388a2b351e8d6ea14fefc5f (patch) | |
tree | c1ee41b686d23b84b071f9f34bf4ad1c3549201a /gdb/gdbserver/tracepoint.c | |
parent | 5b3d386eed68db38fda170cb48b54ce1baa86baa (diff) | |
download | gdb-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/gdbserver/tracepoint.c')
-rw-r--r-- | gdb/gdbserver/tracepoint.c | 24 |
1 files changed, 9 insertions, 15 deletions
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) |