Debug Manual

Table Of Contents
Sample Debug Sessions
Debug Manual421921-003
F-12
TNS Program Example
Clearing Breakpoint of Current Location
If the program is stopped at a code breakpoint, you need to specify only the C
command to clear the breakpoint. We look at the breakpoints both before and after this
operation.
? Command
The EXAMPLE_FILL_ARRAY procedure makes one of the previously allocated
segments available for the program use. We can see the current segment being used
with the ? command by displaying the ARRAY_NUM parameter at location L-3.
When we resume the program, it puts data segment 1 in use, then prompts us for
some data. We enter "abcdefg". The program puts the input data in a local buffer, then
moves it to the data segment. At this point, we arrive at the breakpoint that is at the
end of the procedure. Using the ? command, we can see that segment 1 is being used.
050,03,00013-b
ADDR: UC.%00,%000104 INS: %002002 SEG: %020737
INS: ADDS +002
ADDR: UC.%00,%000177 INS: %125004 SEG: %020737
INS: EXIT 04
050,03,00013-c
050,03,00013-b
ADDR: UC.%00,%000177 INS: %125004 SEG: %020737
INS: EXIT 04
050,03,00013-?
USE SEGMENT ID = NONE
BASE STANDARD IN
BASE STANDARD OUT
TERM \M5.$ZTN00.#PTAZJAC
PRV = OFF
050,03,00013-d l-3
%000020: %000001
050,03,00013-r
enter some data
abcdefg
DEBUG P=%000177, E=%000207, UC.%00-BREAKPOINT-
050,03,00013-?
USE SEGMENT ID = %000001
BASE STANDARD IN
BASE STANDARD OUT
TERM \M5.$ZTN00.#PTAZJAC
PRV = OFF