* tracepoint.c (tracepoint_operation): Report the deletion event

after we have unlinked the tracepoint from the list, and use the
proper tracepoint number.
This commit is contained in:
Jim Blandy
2007-10-27 00:34:48 +00:00
parent 3c2fafa531
commit e3dd034fca
2 changed files with 6 additions and 1 deletions

View 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)