gdb/gdbserver/
authorYao Qi <yao@codesourcery.com>
Wed, 2 Nov 2011 04:34:22 +0000 (04:34 +0000)
committerYao Qi <yao@codesourcery.com>
Wed, 2 Nov 2011 04:34:22 +0000 (04:34 +0000)
* tracepoint.c (cmd_qtstart): Remove unused local variables.

gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c

index b70c5d05ec33e1781420a30b458c7e5ce868aa01..e04cacc2a5a1441ce1860e56b5fc34784e06d069 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 0a64104072c893a55567ed5527003dca807e8e85..eaa54f520d0f2efddb8c31703ed29fecbdeecf2a 100644 (file)
@@ -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 "