From 63d022e0ce7e1c7734aabff5b1e865cc8e1edf9e Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Fri, 16 Aug 2002 16:09:07 +0000 Subject: [PATCH] * gdb-events.sh (clear_gdb_event_hooks): New function. * gdb-events.c: Regenerate. * gdb-events.h: Regenerate. --- gdb/ChangeLog | 6 ++++++ gdb/gdb-events.c | 8 ++++++++ gdb/gdb-events.h | 3 +++ gdb/gdb-events.sh | 15 +++++++++++++++ 4 files changed, 32 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2559d7e2cb..f48858bc71 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-08-16 Keith Seitz + + * gdb-events.sh (clear_gdb_event_hooks): New function. + * gdb-events.c: Regenerate. + * gdb-events.h: Regenerate. + 2002-08-16 Andrew Cagney * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to diff --git a/gdb/gdb-events.c b/gdb/gdb-events.c index ada30a3ef5..0912e65119 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 5f7fc6b5a5..67868184b0 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 9965f05577..2872b99c48 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 <