System Debug Reference Manual (32650-90888)

276 Chapter6
System Debug Command Specifications M-X
TRAP
Trace Traps
The currently defined trace events are based on compiler generated
breakpoints. These breakpoints are inserted into the code by the compilers
only if the symbolic debug compiler option is used. If the debugger arms
any of these events, it stops at the indicated event.
BEGIN_PROCEDURE Stop at the entry to procedure.
END_PROCEDURE Stop at the exit from procedure.
LABELS Stop at all labels.
STATEMENTS Stop at each source statement (requires compiler support).
EXIT_PROGRAM Stop at the program exit point.
ENTER_PROGRAM Stop at the program entry point.
TRACE_ALL All of the trace events.
option
Three options are supported. If none is given, LIST is assumed.
LIST List the current setting of the trap(s).
ARM Arm the indicated trap(s).
DISARM Disarm the indicated trap(s).
Examples
$nmdebug > trap list
XLIBRARY DISABLED
XARITHMETIC DISABLED
XSYSTEM DISABLED
XCODE DISABLED
BRANCH DISABLED
BEGIN_PROCEDURE DISABLED
END_PROCEDURE DISABLED
LABELS DISABLED
STATEMENTS DISABLED
ENTER_PROGRAM DISABLED
EXIT_PROGRAM DISABLED
List the status of all the defined traps (initial status is disabled).
$nmdebug > trap branch arm
Arm the branch taken trap and the arithmetic traps.