System Debug Reference Manual (32650-90888)

54 Chapter3
System Debug Interface Commands and Intrinsics
Debug Interfaces
PROGRAM TERMINATED IN AN ERROR STATE. (CIERR 976)
:
If the SETDUMP command (or intrinsic) is invoked before running this program, a full dual
stack trace and a register dump is produced when the process aborts. Consider the
following example:
:setdump
:run nmbomb
**** Integer divide by zero (TRAPS 30)
ABORT: NMBOMB.DEMO.TELESUP
**** PROCESS ABORT STACKDUMP FACILITY ****
PC=191.00006b20 test_arith_trap+$28
NM* 0) SP=40221178 RP=191.00006e8c do_traps+$2ac
NM 1) SP=40221140 RP=191.00007c08 PROGRAM+$360
NM 2) SP=402210f8 RP=191.00000000
(end of NM stack)
R0 =00000000 00000000 00006e8f c1c60000 R4 =81c2b6c0 00000001 c0000000 00000000
R8 =00000000 00000000 00000000 00000000 R12=00000000 00000000 00000000 00000000
R16=00000000 00000000 00000000 00000061 R20=00000020 00000191 00000005 0000003a
R24=0000001a 00000000 00000005 40200008 R28=0000018d 00000000 40221178 00006b23
IPSW=0006ff0f=jthlnxbCVmrQPDI PRIV=3 SAR=0000 PCQF=191.6b23 191.6b27
SR0=0000000a 0000000a 0000018d 00000000 SR4=00000191 0000018d 0000000b 0000000a
TR0=00616200 00646200 0000ac00 00545274 TR4=40221de8 00000001 00000001 00000022
PID1=018a=00c5(W) PID2=0000=0000(W) PID3=0000=0000(W) PID4=0000=0000(W)
RCTR=00000000 ISR=00000191 IOR=00000000 IIR=b3202000 IVA=000aa800 ITMR=ad40a0fd
EIEM=ffffffff EIRR=00000000 CCR=0080
**** PROCESS ABORT INTERACTIVE DEBUG FACILITY ****
$2 ($22) nmdebug >
Note that in the above example, the user is left in Debug. At this point, the user is able to
enter any Debug command. The process may even be resumed (see theCONTINUE command
in chapter 4).
It is possible to specify what action should be taken when a process aborts by providing a
list of commands for Debug to execute. In the following example, a simple message is
printed if the process aborts.
:setdump ;debug="wl 'Oh my, our process is aborting !'"
:run cmbomb
**** PROGRAM ERROR #4 :INTEGER DIVIDE BY ZERO
ABORT: CMBOMB.DEMO.TELESUP
**** PROCESS ABORT STACKDUMP FACILITY ****
Oh my, our process is aborting
!
PROGRAM TERMINATED IN AN ERROR STATE. (CIERR 976)
: