after we have unlinked the tracepoint from the list, and use the
proper tracepoint number.
2007-10-26 Jim Blandy <jimb@codesourcery.com>
+ * tracepoint.c (tracepoint_operation): Report the deletion event
+ after we have unlinked the tracepoint from the list, and use the
+ proper tracepoint number.
+
* ax-gdb.c (expr_to_agent): Delete unused function.
(expr_to_address_and_size): Delete #if 0'd function.
* ax-gdb.h (expr_to_agent): Delete declaration.
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)