diff options
author | gene <gene@cvs.openbsd.org> | 1998-02-26 07:03:10 +0000 |
---|---|---|
committer | gene <gene@cvs.openbsd.org> | 1998-02-26 07:03:10 +0000 |
commit | c2c907e5519d2e9cdb5391fac37e2597ccd97411 (patch) | |
tree | c14f74106419a9f7939b8541bbb9c9bd60bd0cf5 | |
parent | 429cd8c8b355e072a4a0765b44f1ee1c38874bf4 (diff) |
Only break to Debugger() when the panic switch is hit if the syctl'able
db_console is set.
-rw-r--r-- | sys/arch/mac68k/mac68k/machdep.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c index e1837e046bf..9dd4c20b76c 100644 --- a/sys/arch/mac68k/mac68k/machdep.c +++ b/sys/arch/mac68k/mac68k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.45 1997/08/04 21:45:47 gene Exp $ */ +/* $OpenBSD: machdep.c,v 1.46 1998/02/26 07:03:09 gene Exp $ */ /* $NetBSD: machdep.c,v 1.134 1997/02/14 06:15:30 scottr Exp $ */ /* @@ -1043,9 +1043,12 @@ nmihand(frame) return; /* regdump(&frame, 128); dumptrace(); */ -#if DDB +#ifdef DIAGNOSTIC printf("Panic switch: PC is 0x%x.\n", frame.f_pc); - Debugger(); +#endif +#ifdef DDB + if (db_console) + Debugger(); #endif nmihanddeep = 0; } |