* tracepoint.c (tracepoint_opertation): Add ui event
authorKeith Seitz <keiths@redhat.com>
Thu, 7 Jun 2001 22:02:18 +0000 (22:02 +0000)
committerKeith Seitz <keiths@redhat.com>
Thu, 7 Jun 2001 22:02:18 +0000 (22:02 +0000)
notifications.
(trace_pass_command): Ditto.

gdb/ChangeLog
gdb/tracepoint.c

index db1fe77a3d5952541a50e58665cea4ce0434f38d..bacfb8e614b7d018b5bd4b72fabf54142cbef8c6 100644 (file)
@@ -1,3 +1,9 @@
+2001-06-07  Keith Seitz  <keiths@redhat.com>
+
+       * tracepoint.c (tracepoint_opertation): Add ui event
+       notifications.
+       (trace_pass_command): Ditto.
+       
 2001-06-07  Andrew Cagney  <ac131313@redhat.com>
 
        * MAINTAINERS (Write After Approval): Note the entry criteria.
index 41d2062eb2ba86ca51d614b45cb444b6d881bb80..a5027c79d379d43831318e7e599bc91c1598cd08 100644 (file)
@@ -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);