System Debug Reference Manual (32650-90888)
52 Chapter3
System Debug Interface Commands and Intrinsics
Debug Interfaces
All intrinsics can be called from NM with the exception of STACKDUMP'. This intrinsic is not
supported in native mode and is found only in the CM intrinsic file. Only those intrinsics
available in MPE V are callable by the CM user. The following table summarizes which
intrinsics are callable from compatibility mode (CM) and native mode (NM):
Callable From Intrinsic Name
CM/NM DEBUG
CM/NM RESETDUMP
CM/NM SETDUMP
CM/NM STACKDUMP
CM STACKDUMP'
NM HPDEBUG
NM HPRESETDUMP
NM HPSETDUMP
Note that no HPSTACKDUMP intrinsic is present. It is intended that the user call HPDEBUG to
produce a custom stackdump when desired.
Direct Calls
If you want to invoke Debug from the CI of the current session, use the DEBUG command.
This command is implemented through intrinsics. The CI simply calls the DEBUG or
HPDEBUG intrinsic. Note that this command requires privileged mode (PM) capability.
DEBUG
DEBUG/XL A.00.00
DEBUG Intrinsic at: a.00702d74 hxdebug+$24
$1 ($25) nmdebug>
The following example shows a call to Debug with a command to display the registers and
then return to the CI.
:DEBUG DR;C
DEBUG/XL A.00.00
HPDEBUG Intrinsic at: a.006b4104 hxdebug+$130
R0 =00000000 006b0000 006b4100 00000002 R4 =40221a80 40221638 402213d8 00000400
R8 =00000001 40200268 40221558 402215c4 R12=402213d4 00000000 00000000 00000000
R16=00000000 00000000 00000000 0000000c R20=00000000 0000000b 0000007f 40221a80
R24=40221add 00000001 00000001 c0200008 R28=0000000b 00000000 40221c58 00000000
IPSW=0006000f=jthlnxbCVmrQPDI PRIV=0 SAR=0011 PCQF=a.6b4104 a.6b410
SR0=0000000a 00000188 0000000a 00000000 SR4=0000000a 00000188 0000000b 0000000a
TR0=00616200 00646200 00005600 00545274 TR4=40222168 00000001 00000001 00000018
PID1=0184=00c2(W) PID2=0000=0000(W) PID3=0000=0000(W) PID4=0000=0000(W)
RCTR=ffffffff ISR=0000000a IOR=00000000 IIR=87e0211a IVA=000aa800 ITMR=35b49924
EIEM=ffffffff EIRR=00000000 CCR=0080
: