System Debug Reference Manual (32650-90888)
90 Chapter4
System Debug Command Specifications :-Exit
B (break)
added: CM |11| SYS % 27.4727 ?FWRITE
NM |1| TRANS 30.00737fb4 SUSER1:?FWRITE
The above example sets a breakpoint at the entry point of the FWRITE intrinsic which is
located in the system library SL.PUB.SYS. 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. SL.PUB.SYS has been translated with the Object Code Translator (OCT),
and so Debug automatically sets a breakpoint in the translated native mode code. Refer to
appendix C for a discussion of CM object code translation, node points, and breakpoints in
translated CM code.
%cmdebug > bl
CM [1] PROG % 0.1665 ?PROCESSSTUDENT SEG' (CSTX 1)
CM [2] PROG % 0.1670 PROCESSSTUDENT+%263 SEG' (CSTX 1)
CM [3] PROG % 0.1672 PROCESSSTUDENT+%265 SEG' (CSTX 1)
CM [4] PROG % 0.1421 PROCESSSTUDENT+%14 SEG' (CSTX 1)
CM T|5| PROG % 0.40 OB'+%40 SEG' (CSTX 1)
count: 0/3
CM [6] GRP % 0.13 ?AVERAGE SEG' (CST 112)
CM [7] GRP % 0.17 AVERAGE+%17 SEG' (CST 112)
CM [10] GRP % 0.20 AVERAGE+%20 SEG' (CST 112)
CM |11| SYS % 27.4727 ?FWRITE SUSER1 (CST 30)
[QUIET] count: 0/144 cmdlist: {wl "Another #100 records written";c}
Corresponding NM bp = 1
Now list the breakpoints that were set in the above examples.
Translated Code Examples
%cmdebug > bg ?average
added: CM [1] GRP % 0.13 ?AVERAGE
NM [1] TRANS 3d.0016962c SEG':?AVERAGE
Set a breakpoint in the group library at the entry point to the AVERAGE procedure. The
group library and program file have been translated by the Object Code Translator (OCT).
Debug determined that the code is translated and thus set a CM breakpoint in the
emulated code
and
a NM breakpoint in the translated code. Refer to appendix C for a
discussion of CM object code translation, node points, and breakpoints in translated CM
code.
%cmdebug > b ?processstudent
added: CM [2] PROG % 0.1665 ?PROCESSSTUDENT
NM [2] TRANS 48.0000a610 SEG':?PROCESSSTUDENT
Set a breakpoint at the entry point to the PROCESSSTUDENT procedure. As in the above
example, the code is translated, and so Debug sets two breakpoints.
%cmdebug > b cmpc
added: CM [3] PROG % 0.1672 PROCESSSTUDENT+%265
NM [3] TRANS 48.0000a66c SEG':PROCESSSTUDENT+%265
%cmdebug > b cmpc+1
added: CM [4] PROG % 0.1673 PROCESSSTUDENT+%266
NM [3] TRANS 48.0000a66c SEG':PROCESSSTUDENT+%265