aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/gdb-events.c8
-rw-r--r--gdb/gdb-events.h3
-rwxr-xr-xgdb/gdb-events.sh15
4 files changed, 32 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2559d7e..f48858b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2002-08-16 Keith Seitz <keiths@redhat.com>
+
+ * gdb-events.sh (clear_gdb_event_hooks): New function.
+ * gdb-events.c: Regenerate.
+ * gdb-events.h: Regenerate.
+
2002-08-16 Andrew Cagney <ac131313@redhat.com>
* breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
diff --git a/gdb/gdb-events.c b/gdb/gdb-events.c
index ada30a3..0912e65 100644
--- a/gdb/gdb-events.c
+++ b/gdb/gdb-events.c
@@ -134,6 +134,14 @@ set_gdb_event_hooks (struct gdb_events *vector)
}
#endif
+#if WITH_GDB_EVENTS
+void
+clear_gdb_event_hooks (void)
+{
+ set_gdb_event_hooks (&null_event_hooks);
+}
+#endif
+
enum gdb_event
{
breakpoint_create,
diff --git a/gdb/gdb-events.h b/gdb/gdb-events.h
index 5f7fc6b..6786818 100644
--- a/gdb/gdb-events.h
+++ b/gdb/gdb-events.h
@@ -105,6 +105,9 @@ extern struct gdb_events *set_gdb_event_hooks (struct gdb_events *vector);
/* Deliver any pending events. */
extern void gdb_events_deliver (struct gdb_events *vector);
+/* Clear event handlers */
+extern void clear_gdb_event_hooks (void);
+
#if !WITH_GDB_EVENTS
#define set_gdb_events(x) 0
#define set_gdb_event_hooks(x) 0
diff --git a/gdb/gdb-events.sh b/gdb/gdb-events.sh
index 9965f05..2872b99 100755
--- a/gdb/gdb-events.sh
+++ b/gdb/gdb-events.sh
@@ -267,6 +267,9 @@ extern struct gdb_events *set_gdb_event_hooks (struct gdb_events *vector);
/* Deliver any pending events. */
extern void gdb_events_deliver (struct gdb_events *vector);
+/* Clear event handlers */
+extern void clear_gdb_event_hooks (void);
+
#if !WITH_GDB_EVENTS
#define set_gdb_events(x) 0
#define set_gdb_event_hooks(x) 0
@@ -393,6 +396,18 @@ cat <<EOF
#endif
EOF
+# Clear hooks function
+echo ""
+cat <<EOF
+#if WITH_GDB_EVENTS
+void
+clear_gdb_event_hooks (void)
+{
+ set_gdb_event_hooks (&null_event_hooks);
+}
+#endif
+EOF
+
# event type
echo ""
cat <<EOF