Debug Manual

Table Of Contents
Sample Debug Sessions
Debug Manual421921-003
F-11
TNS Program Example
Clearing Breakpoints with *
The following example demonstrates clearing breakpoints using * with the C command.
First, we use the B command to view all the breakpoints we have set in the
EXAMPLE_MAIN procedure. We then clear the breakpoints using the C * command
and show that they are gone.
Trace Command
In the following example, we use the EXAMPLE_FILL_ARRAY procedure to illustrate
the use of the trace (T) command, and the use of the N option with the T command.
We first set breakpoints at the beginning and near the end of the procedure and
resume to the first breakpoint. After reaching the breakpoint, we use the T and TN
commands to trace the stack and show the names.
050,03,00013-B
ADDR: UC.%00,%000005 INS: %002035 SEG: %020737
INS: ADDS +035
ADDR: UC.%00,%000103 INS: %125003 SEG: %020737
INS: EXIT 03
ADDR: UC.%00,%000232 INS: %040401 SEG: %020737
INS: LOAD L+001
ADDR: UC.%00,%000255 INS: %040401 SEG: %020737
INS: LOAD L+001
050,03,00013-C *
050,03,00013-B
050,03,00013-B %104
ADDR: UC.%00,%000104 INS: %002002 SEG: %020737
INS: ADDS +002
050,03,00013-b %104+%73
ADDR: UC.%00,%000177 INS: %125004 SEG: %020737
INS: EXIT 04
050,03,00013-r
DEBUG P=%000104, E=%000207, UC.%00-BREAKPOINT-
050,03,00011-t
%000104 E=%000200 L=%000023 ENV: T UC.%00
%000021:%000310 E=%000200 L=%000015 ENV: T UC.%00
050,03,00013-tn
%000104 E=%000200 L=%000023 EXAMPLE_FILL_ARRAY + %000000
000021: %000310 E=%000200 L=%000015 EXAMPLE_MAIN + %000077