mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 04:43:17 +08:00
* 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:
@ -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)
|
||||
|
Reference in New Issue
Block a user