summaryrefslogtreecommitdiff
path: root/sys/ddb/db_trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ddb/db_trap.c')
-rw-r--r--sys/ddb/db_trap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/ddb/db_trap.c b/sys/ddb/db_trap.c
index 96eeb2ab3fc..01b15fe7519 100644
--- a/sys/ddb/db_trap.c
+++ b/sys/ddb/db_trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trap.c,v 1.15 2010/11/27 19:57:23 miod Exp $ */
+/* $OpenBSD: db_trap.c,v 1.16 2011/04/03 16:46:19 drahn Exp $ */
/* $NetBSD: db_trap.c,v 1.9 1996/02/05 01:57:18 christos Exp $ */
/*
@@ -48,6 +48,7 @@
#include <ddb/db_sym.h>
#include <ddb/db_extern.h>
#include <ddb/db_interface.h>
+#include <ddb/db_var.h>
void
db_trap(int type, int code)
@@ -55,6 +56,7 @@ db_trap(int type, int code)
boolean_t bkpt;
boolean_t watchpt;
+ db_is_active = 1;
bkpt = IS_BREAKPOINT_TRAP(type, code);
watchpt = IS_WATCHPOINT_TRAP(type, code);
@@ -97,4 +99,5 @@ db_trap(int type, int code)
}
db_restart_at_pc(DDB_REGS, watchpt);
+ db_is_active = 0;
}