From 6c5335e7cad873e0fc44aa0e71bbf1294a6bb7ba Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 30 Dec 2007 13:22:25 +0000 Subject: 2007-12-30 Samuel thibault * kern/debug.c (panic) [MACH_KDB]: Don't wait before running the debugger. --- kern/debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kern') diff --git a/kern/debug.c b/kern/debug.c index d07f1ed..e81c6a2 100644 --- a/kern/debug.c +++ b/kern/debug.c @@ -155,6 +155,9 @@ panic(const char *s, ...) va_end(listp); printf("\n"); +#if MACH_KDB + Debugger("panic"); +#else /* Give the user time to see the message */ { int i = 1000; /* seconds */ @@ -162,9 +165,6 @@ panic(const char *s, ...) delay (1000000); /* microseconds */ } -#if MACH_KDB - Debugger("panic"); -#else halt_all_cpus (1); #endif } -- cgit v1.2.3