diff options
author | Yao Qi <yao@codesourcery.com> | 2011-11-02 04:34:22 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2011-11-02 04:34:22 +0000 |
commit | fd0d8c7ca37da84530d172695ed71dff880be864 (patch) | |
tree | d51fa506dbcef02dcad281af6455822ac2807b76 | |
parent | 609086b1aac6d0561770e585fdb3ac3c593e1cff (diff) | |
download | gdb-fd0d8c7ca37da84530d172695ed71dff880be864.zip gdb-fd0d8c7ca37da84530d172695ed71dff880be864.tar.gz gdb-fd0d8c7ca37da84530d172695ed71dff880be864.tar.bz2 |
gdb/gdbserver/
* tracepoint.c (cmd_qtstart): Remove unused local variables.
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/tracepoint.c | 7 |
2 files changed, 4 insertions, 7 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index b70c5d0..e04cacc 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,9 @@ 2011-11-02 Yao Qi <yao@codesourcery.com> + * tracepoint.c (cmd_qtstart): Remove unused local variables. + +2011-11-02 Yao Qi <yao@codesourcery.com> + * target.h: Fix a typo in comment. 2011-10-31 Pedro Alves <pedro@codesourcery.com> diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index 0a64104..eaa54f5 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -2740,7 +2740,6 @@ static void cmd_qtstart (char *packet) { struct tracepoint *tpoint, *prev_ftpoint, *prev_stpoint; - int slow_tracepoint_count, fast_count; CORE_ADDR jump_entry; /* The jump to the jump pad of the last fast tracepoint @@ -2750,8 +2749,6 @@ cmd_qtstart (char *packet) trace_debug ("Starting the trace"); - slow_tracepoint_count = fast_count = 0; - /* Sort tracepoints by ascending address. This makes installing fast tracepoints at the same address easier to handle. */ sort_tracepoints (); @@ -2791,8 +2788,6 @@ cmd_qtstart (char *packet) if (tpoint->type == trap_tracepoint) { - ++slow_tracepoint_count; - /* Tracepoints are installed as memory breakpoints. Just go ahead and install the trap. The breakpoints module handles duplicated breakpoints, and the memory read @@ -2802,8 +2797,6 @@ cmd_qtstart (char *packet) } else if (tpoint->type == fast_tracepoint) { - ++fast_count; - if (maybe_write_ipa_not_loaded (packet)) { trace_debug ("Requested a fast tracepoint, but fast " |