diff options
author | Keith Seitz <keiths@redhat.com> | 2001-06-07 22:02:18 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2001-06-07 22:02:18 +0000 |
commit | 8f45b7fe58e8e257b07751f611e80ccbdf51c276 (patch) | |
tree | 38bdcd171ed5d55ba9d3845f17ffc5e280a002c3 /gdb/tracepoint.c | |
parent | a4f1e24f015825b0ecb7b80dbeed108c571b0bfa (diff) | |
download | gdb-8f45b7fe58e8e257b07751f611e80ccbdf51c276.zip gdb-8f45b7fe58e8e257b07751f611e80ccbdf51c276.tar.gz gdb-8f45b7fe58e8e257b07751f611e80ccbdf51c276.tar.bz2 |
* tracepoint.c (tracepoint_opertation): Add ui event
notifications.
(trace_pass_command): Ditto.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 41d2062..a5027c7 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -33,6 +33,7 @@ #include "remote.h" #include "linespec.h" #include "regcache.h" +#include "gdb-events.h" #include "ax.h" #include "ax-gdb.h" @@ -574,11 +575,13 @@ tracepoint_operation (struct tracepoint *t, int from_tty, t->enabled = enabled; if (modify_tracepoint_hook) modify_tracepoint_hook (t); + tracepoint_modify_event (t->number); break; case disable_op: t->enabled = disabled; if (modify_tracepoint_hook) modify_tracepoint_hook (t); + tracepoint_modify_event (t->number); break; case delete_op: if (tracepoint_chain == t) @@ -587,6 +590,7 @@ 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; } @@ -742,6 +746,7 @@ trace_pass_command (char *args, int from_tty) t2->pass_count = count; if (modify_tracepoint_hook) modify_tracepoint_hook (t2); + tracepoint_modify_event (t2->number); if (from_tty) printf_filtered ("Setting tracepoint %d's passcount to %d\n", t2->number, count); |