aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-10 20:21:14 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-10 20:21:14 +0000
commitf8f67713c0d407e587ca56ff0db9b3297c1f2667 (patch)
treeb234c17a60c976a2cdd7177de096bef43128649a /gdb/gdbserver
parent4f269b12df36167cc053fc8493d4f8e1a9b2c259 (diff)
downloadgdb-f8f67713c0d407e587ca56ff0db9b3297c1f2667.zip
gdb-f8f67713c0d407e587ca56ff0db9b3297c1f2667.tar.gz
gdb-f8f67713c0d407e587ca56ff0db9b3297c1f2667.tar.bz2
2011-02-28 Michael Snyder <msnyder@vmware.com>
* tracepoint.c (cmd_qtv): Discard unused value 'packet'. (cmd_qtframe): Ditto. (cmd_qtbuffer): Ditto. (cmd_bigqtbuffer): Ditto.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/tracepoint.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c
index fc9c7d8..0916835 100644
--- a/gdb/gdbserver/tracepoint.c
+++ b/gdb/gdbserver/tracepoint.c
@@ -2463,7 +2463,7 @@ cmd_qtv (char *own_buf)
char *packet = own_buf;
packet += strlen ("qTV:");
- packet = unpack_varlen_hex (packet, &num);
+ unpack_varlen_hex (packet, &num);
if (current_traceframe >= 0)
{
@@ -3033,7 +3033,7 @@ cmd_qtframe (char *own_buf)
if (strncmp (packet, "pc:", strlen ("pc:")) == 0)
{
packet += strlen ("pc:");
- packet = unpack_varlen_hex (packet, &pc);
+ unpack_varlen_hex (packet, &pc);
trace_debug ("Want to find next traceframe at pc=0x%s", paddress (pc));
tframe = find_next_traceframe_in_range (pc, pc, 1, &tfnum);
}
@@ -3042,7 +3042,7 @@ cmd_qtframe (char *own_buf)
packet += strlen ("range:");
packet = unpack_varlen_hex (packet, &lo);
++packet;
- packet = unpack_varlen_hex (packet, &hi);
+ unpack_varlen_hex (packet, &hi);
trace_debug ("Want to find next traceframe in the range 0x%s to 0x%s",
paddress (lo), paddress (hi));
tframe = find_next_traceframe_in_range (lo, hi, 1, &tfnum);
@@ -3052,7 +3052,7 @@ cmd_qtframe (char *own_buf)
packet += strlen ("outside:");
packet = unpack_varlen_hex (packet, &lo);
++packet;
- packet = unpack_varlen_hex (packet, &hi);
+ unpack_varlen_hex (packet, &hi);
trace_debug ("Want to find next traceframe "
"outside the range 0x%s to 0x%s",
paddress (lo), paddress (hi));
@@ -3061,7 +3061,7 @@ cmd_qtframe (char *own_buf)
else if (strncmp (packet, "tdp:", strlen ("tdp:")) == 0)
{
packet += strlen ("tdp:");
- packet = unpack_varlen_hex (packet, &num);
+ unpack_varlen_hex (packet, &num);
tpnum = (int) num;
trace_debug ("Want to find next traceframe for tracepoint %d", tpnum);
tframe = find_next_traceframe_by_tracepoint (tpnum, &tfnum);
@@ -3383,7 +3383,7 @@ cmd_qtbuffer (char *own_buf)
packet = unpack_varlen_hex (packet, &offset);
++packet; /* skip a comma */
- packet = unpack_varlen_hex (packet, &num);
+ unpack_varlen_hex (packet, &num);
trace_debug ("Want to get trace buffer, %d bytes at offset 0x%s",
(int) num, pulongest (offset));
@@ -3433,7 +3433,7 @@ cmd_bigqtbuffer (char *own_buf)
if (strncmp ("circular:", packet, strlen ("circular:")) == 0)
{
packet += strlen ("circular:");
- packet = unpack_varlen_hex (packet, &val);
+ unpack_varlen_hex (packet, &val);
circular_trace_buffer = val;
trace_debug ("Trace buffer is now %s",
circular_trace_buffer ? "circular" : "linear");