summaryrefslogtreecommitdiff
path: root/gdb/gdb-events.sh
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>1999-12-22 21:45:38 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>1999-12-22 21:45:38 +0000
commita89794ecfa23772332aa3af0bd4c805636314f60 (patch)
treefb36064dbed25c94690f1a090448050d7de31754 /gdb/gdb-events.sh
parent581a81d2bed63e5910a0715d6bf685cfc4746bc6 (diff)
downloadgdb-a89794ecfa23772332aa3af0bd4c805636314f60.tar.gz
import gdb-1999-12-21 snapshot
Diffstat (limited to 'gdb/gdb-events.sh')
-rwxr-xr-xgdb/gdb-events.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/gdb-events.sh b/gdb/gdb-events.sh
index 620322d932c..6b9dc810aad 100755
--- a/gdb/gdb-events.sh
+++ b/gdb/gdb-events.sh
@@ -257,7 +257,7 @@ echo "#endif"
cat <<EOF
/* Install custom gdb-events hooks. */
-extern void set_gdb_event_hooks (struct gdb_events *vector);
+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);
@@ -361,13 +361,15 @@ echo "#endif"
echo ""
cat <<EOF
#if WITH_GDB_EVENTS
-void
+struct gdb_events *
set_gdb_event_hooks (struct gdb_events *vector)
{
+ struct gdb_events *old_events = current_event_hooks;
if (vector == NULL)
current_event_hooks = &queue_event_hooks;
else
current_event_hooks = vector;
+ return old_events;
EOF
function_list | while eval read $read
do