System Debug Reference Manual (32650-90888)
88 Chapter4
System Debug Command Specifications :-Exit
B (break)
$nmdebug > bs ?FREAD,#100,q,{wl "Read another 100 records";c}
added: NM |10| SYS a.0074aa34 FREAD
Set a breakpoint at the FREAD intrinsic. Every #100 times the routine is called, stop and
print out a message. The QUIET option is specified so this operation produces no extra
terminal output. The vertical bars in the breakpoint notation indicates that the process
does not stop the next time the breakpoint is encountered, since the count is not yet
exhausted.
$nmdebug > bs trap_handler:@,,,{trace ,ism}
added: NM @[1] SYS a.00668684 trap_handler
Set a system-wide breakpoint in the trap handler. This routine is in the system NL. When
the breakpoint is hit, perform a stack trace. The "@" indicates that the breakpoint is a
global
breakpoint.
$nmdebug > b pw+4
added: NM [11] PROG $115.00006984 initstudentrecord+14
Break at the address specified by adding 4 to the address of the first line in the program
window. In this case, the program window must have been aimed at
initstudentrecord+10.
$nmdebug > bl
NM [1] PROG 115.00006a8c PROGRAM+$270
NM [2] PROG 115.00006a90 PROGRAM+$274
NM [3] PROG 115.00005d24 processstudent
cmdlist: {wl "Processing #" r26:"d";c}
NM T[4] PROG 115.00005b50 processstudent.highscore
NM [5] GRP 118.00015c88 average
NM [6] GRP 118.00015c8c average+$4
NM [7] GRP 118.00015c90 average+$8
NM [8] USER f4.0012f2b8 p_heap:P_INIT_HEAP
NM [9] USER f4.001f9188 U_INIT_TRAPS
NM |10| SYS a.0074aa34 FREAD
[QUIET] count: 0/64 cmdlist: {wl "Read another 100 records";c}
NM [11] PROG $115.00006984 initstudentrecord+14
NM @[1] SYS a.00668684 trap_handler
[QUIET] cmdlist: {trace ,ism}
Now list all of the breakpoints just set above.
CM Code Examples
%cmdebug > loadinfo
cm PROG GRADES.DEMOCM.TELESUP
parm = #0 info = ""
cm GRP SL.DEMOCM.TELESUP
cm SYS SL.PUB.SYS
nm SYS NL.PUB.SYS SID = $a
Show the list of all currently loaded files.
%cmdebug > b ?processstudent
added: CM [1] PROG % 0.1665 ?PROCESSSTUDENT
Set a breakpoint at the entry point (indicated by the ? character) of the procedure