Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Nov 2003 17:57:45 -0800 (PST)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 41780 for review
Message-ID:  <200311090157.hA91vjnv034263@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=41780

Change 41780 by jmallett@jmallett_dalek on 2003/11/08 17:57:08

	Enter DDB when possible, don't be backwards about it.

Affected files ...

.. //depot/projects/mips/sys/mips/mips/trap.c#13 edit

Differences ...

==== //depot/projects/mips/sys/mips/mips/trap.c#13 (text+ko) ====

@@ -136,14 +136,17 @@
 	switch (code) {
 	case T_BREAK:
 #if	DDB
+	default:
 		kdb_trap(code, tf);
 		break;
-#endif
+#else
 	default:
 		goto dopanic;
+#endif
 	}
 	platform_trap_exit();
 	return;
+#ifndef	DDB
 dopanic:
 	if (panicstr != NULL) {
 		printf("Double panic, resetting...\n");
@@ -151,4 +154,5 @@
 	}
 	panic("trap");
 	platform_trap_exit();
+#endif
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311090157.hA91vjnv034263>