aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2007-10-27 00:34:48 +0000
committerJim Blandy <jimb@codesourcery.com>2007-10-27 00:34:48 +0000
commite3dd034fca239d8ee7352647d185b890d47fc022 (patch)
tree03e1ae10943344fe89dc6288fe94f57830bdb7c0 /gdb/tracepoint.c
parent3c2fafa5311f159f222047699968e091a8f260d6 (diff)
downloadgdb-e3dd034fca239d8ee7352647d185b890d47fc022.zip
gdb-e3dd034fca239d8ee7352647d185b890d47fc022.tar.gz
gdb-e3dd034fca239d8ee7352647d185b890d47fc022.tar.bz2
* tracepoint.c (tracepoint_operation): Report the deletion event
after we have unlinked the tracepoint from the list, and use the proper tracepoint number.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c3
1 files changed, 2 insertions, 1 deletions
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)