*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / tracepoint.c
index 1931e6c4cff70f307150cd9275512d59bc12681f..e9568e50a57e9db7a1fb8897c8e374fb19ad4f15 100644 (file)
@@ -583,11 +583,12 @@ tracepoint_operation (struct tracepoint *t, int from_tty,
       ALL_TRACEPOINTS (t2)
        if (t2->next == t)
        {
-         tracepoint_delete_event (t2->number);
          t2->next = t->next;
          break;
        }
 
+      tracepoint_delete_event (t->number);
+
       if (t->addr_string)
        xfree (t->addr_string);
       if (t->source_file)
This page took 0.023081 seconds and 4 git commands to generate.