Debug Manual

Table Of Contents
Sample Debug Sessions
Debug Manual421921-003
F-20
TNS Program Example
We resume the program and enter some data at the prompt. Observe that the value of
ARRAY_NUM is shown as we enter the procedure, and the selectable segment is
shown as the procedure ends.
Conditional Breakpoint
The next example shows a conditional breakpoint. We stop at a code breakpoint in
EXAMPLE_FILL_ARRAY when parameter ARRAY_NUM is greater than 16. We first
run the object code in Example F-2 on page F-4: RUND demo1.
050,03,00009-r
TRACE 0x004F , UC.%00
0x0010: 0x0001
enter some data
abcdefg
TRACE 0x007F , UC.%00
0x0014: 0x0061 0x6263 0x6465 0x6667 0x0000 0x0000 0x0000 0x0000
TRACE 0x004F , UC.%00
0x0010: 0x0002
enter some data
hijklmnop
TRACE 0x007F , UC.%00
0x0014: 0x0068 0x696A 0x6B6C 0x6D6E 0x6F70 0x0000 0x0000 0x0000
TRACE 0x004F , UC.%00
0x0010: 0x0011
enter some data
uvwxyz0123
TRACE 0x007F , UC.%00
0x0014: 0x0075 0x7677 0x7879 0x7A30 0x3132 0x3300 0x0000 0x0000
050,03,00010-b %117
ADDR: UC.%00,%000117 INS: %127006 SEG: %020707
INS: XCAL 006
050,03,00010-r
DEBUG P=%000117, E=%000227, UC.%00-BREAKPOINT-
050,03,00010-c
050,03,00010-b %117, L-3 > #16
ADDR: UC.%00,%000117 INS: %127006 SEG: %020707
INS: XCAL 006
L %177775 & %177777 > %000020
050,03,00010-r
enter some data
abcdefg
enter some data
lmnopqrst
DEBUG P=%000117, E=%000227, UC.%00-BREAKPOINT-
050,03,00010-d L-3 :d
%000020: #00017