summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2004-10-08 07:45:16 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2004-10-08 07:45:16 +0000
commit8f29d410b6a8ea3bfb4f0f846882e87a8249b113 (patch)
tree4fb13d48bfe59f150aa296418b20a654e3c56cc9 /sys/arch/mips64
parent85ef9e4f21931c65eaee3ab2d4e3aa4aa5f8207e (diff)
Fix DDB/DEBUG ifdefs dance.
Help and ok from miod, ok pefo@
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/mips64/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mips64/mips64/trap.c b/sys/arch/mips64/mips64/trap.c
index b7def1b6d7d..f752c296b5d 100644
--- a/sys/arch/mips64/mips64/trap.c
+++ b/sys/arch/mips64/mips64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.12 2004/09/23 08:42:38 pefo Exp $ */
+/* $OpenBSD: trap.c,v 1.13 2004/10/08 07:45:15 grange Exp $ */
/* tracked to 1.23 */
/*
@@ -760,13 +760,13 @@ printf("SIG-BUSB @%p pc %p, ra %p\n", trapframe->badvaddr, trapframe->pc, trapfr
default:
err:
disableintr();
-#ifndef DDB
+#if !defined(DDB) && defined(DEBUG)
trapDump("trap");
#endif
printf("\nTrap cause = %d Frame %p\n", type, trapframe);
printf("Trap PC %p RA %p\n", trapframe->pc, trapframe->ra);
- stacktrace(!USERMODE(trapframe->sr) ? trapframe : p->p_md.md_regs);
#ifdef DDB
+ stacktrace(!USERMODE(trapframe->sr) ? trapframe : p->p_md.md_regs);
kdb_trap(type, trapframe);
#endif
panic("trap");