This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] Tracepoint events
- To: <gdb-patches at sources dot redhat dot com>
- Subject: [RFA] Tracepoint events
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Thu, 7 Jun 2001 10:35:46 -0700 (PDT)
Hi,
This is my lame follow-up to my introductory excursion into gdb's ui event
model. This simply adds tracepoint creation/modification/deletion event
notifications to tracepoint.c.
Ok?
Keith
ChangeLog
2001-06-07 Keith Seitz <keiths@redhat.com>
* tracepoint.c (tracepoint_opertation): Add ui event
notifications.
(trace_pass_command): Ditto.
Patch
Index: tracepoint.c
===================================================================
RCS file: /cvs/src/src/gdb/tracepoint.c,v
retrieving revision 1.20
diff -u -p -r1.20 tracepoint.c
--- tracepoint.c 2001/04/17 20:16:30 1.20
+++ tracepoint.c 2001/06/07 17:34:38
@@ -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->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
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
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);