System Debug Reference Manual (32650-90888)
Chapter 6 277
System Debug Command Speciļ¬cations M-X
TRAP
$nmdebug > trap
XLIBRARY DISABLED
XARITHMETIC DISABLED
XSYSTEM DISABLED
XCODE DISABLED
BRANCH DISABLED
BEGIN_PROCEDURE DISABLED
END_PROCEDURE ARMED
LABELS DISABLED
STATEMENTS DISABLED
ENTER_PROGRAM DISABLED
EXIT_PROGRAM DISABLED
Show the status of the traps.
$nmdebug > c
Branch Taken at: 6a8.00005d84 processstudent+$60
to: 6a8.000056b8 lr_wa_10
$nmdebug > c
Branch Taken at: 6a8.00005708 lr_wa_1+$8
to: 6a8.00005d88 processstudent+$64
$nmdebug > c
Branch Taken at: 6a8.00005d94 processstudent+$70
to: 6a8.00005990 ?_start+$3c
$nmdebug > c
Branch Taken at: 6a8.000059ac ?_start+$58
to: a.fff7b004
$nmdebug > c
Branch Taken at: a.fff7b024
to: 730.00015c6c ?average
The above example shows the use of the branch taken trap. Every time any form of branch
instruction is executed, Debug stops just before the branch occurs.
$nmdebug > trap xari arm
$nmdebug > trap xari list
XLIBRARY ARMED
$nmdebug > c
XARI Trap at: 730.00015d38 average+$b0
trap mask = 00000002
$nmdebug > wl pc,#13
GRP $730.15d38
$nmdebug > dc pc-20,#13
GRP $730.15d18
00015d18 average+$90 b6b60802 ADDIO 1,21,22
00015d1c average+$94 6bd63f81 STW 22,-64(0,30)
00015d20 average+$98 e81f1f77 B,N average+$58
00015d24 average+$9c 20000009 ** Stmt 9
00015d28 average+$a0 4bc13ee9 LDW -140(0,30),1
00015d2c average+$a4 b4390fff ADDIO -1,1,25 /* Trap occurred in