mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 22:03:57 +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:
@ -1,5 +1,9 @@
|
|||||||
2007-10-26 Jim Blandy <jimb@codesourcery.com>
|
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.
|
* ax-gdb.c (expr_to_agent): Delete unused function.
|
||||||
(expr_to_address_and_size): Delete #if 0'd function.
|
(expr_to_address_and_size): Delete #if 0'd function.
|
||||||
* ax-gdb.h (expr_to_agent): Delete declaration.
|
* ax-gdb.h (expr_to_agent): Delete declaration.
|
||||||
|
@ -583,11 +583,12 @@ tracepoint_operation (struct tracepoint *t, int from_tty,
|
|||||||
ALL_TRACEPOINTS (t2)
|
ALL_TRACEPOINTS (t2)
|
||||||
if (t2->next == t)
|
if (t2->next == t)
|
||||||
{
|
{
|
||||||
tracepoint_delete_event (t2->number);
|
|
||||||
t2->next = t->next;
|
t2->next = t->next;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tracepoint_delete_event (t->number);
|
||||||
|
|
||||||
if (t->addr_string)
|
if (t->addr_string)
|
||||||
xfree (t->addr_string);
|
xfree (t->addr_string);
|
||||||
if (t->source_file)
|
if (t->source_file)
|
||||||
|
Reference in New Issue
Block a user