summaryrefslogtreecommitdiff
path: root/sys/kern/subr_prf.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-05-18 18:24:22 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-05-18 18:24:22 +0000
commit983a20cc8c6aa0454f1f9edfd9fed4b64aa89dcc (patch)
treefddbe0e9fda2cf16b782c295db7444dc26471872 /sys/kern/subr_prf.c
parentb53874f6b4b19059defc84c141d0269b1aad1957 (diff)
If ddb.panic is disabled, print the stack trace before dumping.
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r--sys/kern/subr_prf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 2a20170da5e..1a1fcc106f8 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_prf.c,v 1.41 2002/05/15 23:17:53 art Exp $ */
+/* $OpenBSD: subr_prf.c,v 1.42 2002/05/18 18:24:21 art Exp $ */
/* $NetBSD: subr_prf.c,v 1.45 1997/10/24 18:14:25 chuck Exp $ */
/*-
@@ -219,6 +219,8 @@ panic(const char *fmt, ...)
#ifdef DDB
if (db_panic)
Debugger();
+ else
+ db_stack_dump();
#endif
boot(bootopt);
}