aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb-events.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdb-events.c')
-rw-r--r--gdb/gdb-events.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdb-events.c b/gdb/gdb-events.c
index a8c4192..3a4f497 100644
--- a/gdb/gdb-events.c
+++ b/gdb/gdb-events.c
@@ -84,13 +84,15 @@ breakpoint_modify_event (int b)
#endif
#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;
}
#endif