diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-05-18 18:24:22 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-05-18 18:24:22 +0000 |
commit | 983a20cc8c6aa0454f1f9edfd9fed4b64aa89dcc (patch) | |
tree | fddbe0e9fda2cf16b782c295db7444dc26471872 /sys/kern/subr_prf.c | |
parent | b53874f6b4b19059defc84c141d0269b1aad1957 (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.c | 4 |
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); } |