From 918d227b01c7320fc9a0a544c7078f4a1497c397 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Tue, 4 Sep 2012 01:47:49 +0000 Subject: [PATCH] gdb/gdbserver/ * tracepoint.c (cmd_qtsv): Adjust debug message. Don't check CUR_TPOINT. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/tracepoint.c | 10 ++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index eb6002ca438..fb89abb6135 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2012-09-04 Yao Qi + + * tracepoint.c (cmd_qtsv): Adjust debug message. + Don't check CUR_TPOINT. + 2012-08-28 Yao Qi * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF. diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index 1bc563d2ad4..201a25b384e 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -3873,15 +3873,9 @@ cmd_qtfv (char *packet) static void cmd_qtsv (char *packet) { - trace_debug ("Returning first trace state variable definition"); + trace_debug ("Returning additional trace state variable definition"); - if (!cur_tpoint) - { - /* This case would normally never occur, but be prepared for - GDB misbehavior. */ - strcpy (packet, "l"); - } - else if (cur_tsv) + if (cur_tsv) { cur_tsv = cur_tsv->next; if (cur_tsv) -- 2.30.2