From: Keith Seitz Date: Fri, 16 Aug 2002 16:09:07 +0000 (+0000) Subject: * gdb-events.sh (clear_gdb_event_hooks): New function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63d022e0ce7e1c7734aabff5b1e865cc8e1edf9e;p=binutils-gdb.git * gdb-events.sh (clear_gdb_event_hooks): New function. * gdb-events.c: Regenerate. * gdb-events.h: Regenerate. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2559d7e2cb5..f48858bc713 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 ada30a3ef5a..0912e651190 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 5f7fc6b5a55..67868184b0f 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 9965f05577f..2872b99c48c 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 <