added traceback becore panic
authorKazumasa Utashiro <utashiro@ucbvax.Berkeley.EDU>
Thu, 8 Apr 1993 17:37:20 +0000 (09:37 -0800)
committerKazumasa Utashiro <utashiro@ucbvax.Berkeley.EDU>
Thu, 8 Apr 1993 17:37:20 +0000 (09:37 -0800)
SCCS-vsn: sys/news3400/news3400/machdep.c 7.10

usr/src/sys/news3400/news3400/machdep.c

index b0027cf..545def4 100644 (file)
@@ -11,7 +11,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)machdep.c   7.9 (Berkeley) %G%
+ *     @(#)machdep.c   7.10 (Berkeley) %G%
  */
 
 /* from: Utah $Hdr: machdep.c 1.63 91/04/24$ */
  */
 
 /* from: Utah $Hdr: machdep.c 1.63 91/04/24$ */
@@ -628,6 +628,11 @@ boot(howto)
        if (curproc)
                savectx(curproc->p_addr, 0);
 
        if (curproc)
                savectx(curproc->p_addr, 0);
 
+#ifdef DEBUG
+       if (panicstr)
+               traceback();
+#endif
+
        boothowto = howto;
        if ((howto & RB_NOSYNC) == 0 && waittime < 0) {
                register struct buf *bp;
        boothowto = howto;
        if ((howto & RB_NOSYNC) == 0 && waittime < 0) {
                register struct buf *bp;