From 7e7ef349740a7aa3ef60b06455112d1b24597cf0 Mon Sep 17 00:00:00 2001 From: "Guillermo J. Rozas" Date: Mon, 23 Nov 1992 04:01:58 +0000 Subject: [PATCH] Print trapping pc and sp if there is no handler in an attempt to find out what's happening with the spurious traps at boot time. --- v7/src/microcode/dostrap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v7/src/microcode/dostrap.c b/v7/src/microcode/dostrap.c index dce456b4b..2d6bb90c2 100644 --- a/v7/src/microcode/dostrap.c +++ b/v7/src/microcode/dostrap.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: dostrap.c,v 1.2 1992/09/18 05:54:06 jinx Exp $ +$Id: dostrap.c,v 1.3 1992/11/23 04:01:58 gjr Exp $ Copyright (c) 1992 Massachusetts Institute of Technology @@ -414,6 +414,8 @@ DEFUN (setup_trap_frame, (trapno, info, scp, trinfo, new_stack_pointer), { fprintf (stderr, "There is no trap handler for recovery!\n"); fprintf (stderr, "Trap = %s.\n", (find_trap_name (trapno))); + fprintf (stderr, "pc = %04x:%08lx; sp = %04x:%08lx.\n", + scp->sc_cs, scp->sc_eip, scp->sc_ss, scp->sc_esp); fflush (stderr); termination_trap (); } -- 2.25.1