* gdb-events.c: Regenerate.
* gdb-events.h: Regenerate.
+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
}
#endif
+#if WITH_GDB_EVENTS
+void
+clear_gdb_event_hooks (void)
+{
+ set_gdb_event_hooks (&null_event_hooks);
+}
+#endif
+
enum gdb_event
{
breakpoint_create,
/* 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
/* 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
#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