From 277e4e52359c0e04b388a2b351e8d6ea14fefc5f Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 24 Feb 2012 14:46:48 +0000 Subject: [PATCH] 2012-02-24 Pedro Alves * tracepoint.c (cmd_bigqtbuffer): Rename as ... (cmd_bigqtbuffer_circular): ... this. Only handle 'QTBuffer:circular:'. (handle_tracepoint_general_set): Adjust. --- gdb/gdbserver/ChangeLog | 7 +++++++ gdb/gdbserver/tracepoint.c | 24 +++++++++--------------- 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 + + * tracepoint.c (cmd_bigqtbuffer): Rename as ... + (cmd_bigqtbuffer_circular): ... this. Only handle + 'QTBuffer:circular:'. + (handle_tracepoint_general_set): Adjust. + 2012-02-16 Yao Qi * 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) -- 2.7.4