Inspect Manual
Using Inspect on a TNS/R System
Inspect Manual—429164-006
15-11
TNS/R Breakpoints
For more information about compilers, see the C/C++ Programmer’s Guide, the
COBOL Manual for TNS and TNS/R Programs, and the pTAL Reference Manual.
TNS/R Breakpoints
When debugging Accelerated programs, you can list and clear TNS/R breakpoints, but
not set them. You must set TNS/R breakpoints from Debug. There are specific rules
that apply to setting TNS/R breakpoints; for more information, see the Debug Manual.
If you set a TNS/R breakpoint and the program transfers to execute TNS code (as
opposed to TNS/R instructions) at that point in the program, the TNS/R breakpoint will
not be triggered.
When debugging TNS/R native programs, you can set breakpoints at any location in
the program. To set a breakpoint in native code, you can either specify a scope name
or a machine-level code address.
Example
This example shows using Debug to set a TNS/R breakpoint and clearing TNS/R
breakpoints using the CLEAR command with the appropriate breakpoint ordinal:
TNS/R Machine Registers
Within Inspect, you can display the value of these TNS/R machine registers when
debugging TNS/R programs:
-PTALIN-SELECT DEBUGGER DEBUG
DEBUG 000061, 000207, UC.00
244,00,083-bn 704201d0
N: 7042.01D0 INS: SH t5,-4(sp)
244,00,083-INSPECT
INSPECT
244,00,083 PTALIN #M.#75.1(TALIN)
-PTALIN-LIST BREAKPOINT
Num Type Subtype Location
1 Code DEBUG TNS/R %h704201D0
-PTALIN-RESUME
INSPECT TNS/R BREAKPOINT 1: TNS/R %h704201D0
244,00,083 PTALIN #M.#78(TALIN)
** Inspect warning 359 **** Current location is not a memory-exact point;
displayed values may be out of date;
the location reported is an approximate TNS
location
-PTALIN-CLEAR 1
Breakpoint cleared: 1 Code DEBUG TNS/R %h704201D0
-PTALIN-LIST BREAKPOINT
** Inspect warning 202 **** No breakpoints exist
tns/r-register: one of
$0 $1 $2 $3...$31
$HI $LO
$PC
tns/r-register-alias