From e3dd034fca239d8ee7352647d185b890d47fc022 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sat, 27 Oct 2007 00:34:48 +0000 Subject: [PATCH] * tracepoint.c (tracepoint_operation): Report the deletion event after we have unlinked the tracepoint from the list, and use the proper tracepoint number. --- gdb/ChangeLog | 4 ++++ gdb/tracepoint.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f30265a..65ea0a6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2007-10-26 Jim Blandy + * 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. diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 1931e6c..e9568e5 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -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) -- 2.7.4