* 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

@ -1,5 +1,9 @@
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.

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)