summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-12-29 14:31:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-12-29 14:31:20 +0000
commitc061429ad5940d86fb941daf4b4a36e42a7d9549 (patch)
tree3cd1e03f146b63d787438f593f2ccda51f474a24 /sys/kern
parent31f5ebdd286ec7123f0ef7f7e6a92256da754418 (diff)
sysctl ddb.panic_ddb; felix@mamba.pond.sub.org
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_prf.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 50296436ab5..d2dbc743e94 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_prf.c,v 1.18 1997/12/28 23:39:28 niklas Exp $ */
+/* $OpenBSD: subr_prf.c,v 1.19 1997/12/29 14:31:16 deraadt Exp $ */
/* $NetBSD: subr_prf.c,v 1.45 1997/10/24 18:14:25 chuck Exp $ */
/*-
@@ -108,6 +108,9 @@ int consintr = 1; /* ok to handle console interrupts? */
extern int log_open; /* subr_log: is /dev/klog open? */
const char *panicstr; /* arg to first call to panic (used as a flag
to indicate that panic has already been called). */
+#ifdef DDB
+int db_panic_ddb = 1;
+#endif
/*
* v_putc: routine to putc on virtual console
@@ -188,7 +191,8 @@ panic(fmt, va_alist)
kdbpanic();
#endif
#ifdef DDB
- Debugger();
+ if (db_panic_ddb)
+ Debugger();
#endif
boot(bootopt);
}