Inspect Manual
Introduction
Inspect Manual—429164-006
1-3
Source-Level and Machine-Level Program Access
Source-Level and Machine-Level Program Access
When you debug a program written in a high-level language, the debugger should
provide source-level access to the program. Machine registers, absolute addresses,
and internal storage schemes generally are not a concern. Inspect provides this type of
source-level, or symbolic, access. The symbolic access provided by Inspect lets you:
Refer to a location by the high-level name you've given it in your source code.
Refer to a source location by its line number in a source file.
Evaluate expressions using the operators and operator precedence of your source
language.
Display source code.
Display and modify the current data segment ID.
Control program execution on a statement-by-statement basis.
Symbolic debugging eases the task of debugging and decreases your debugging time,
but sometimes you need to have machine-level access to your program. The machine-
level access provided by Inspect lets you:
Refer to an item by its absolute or relative address.
Display and modify machine registers.
Display machine code.
Control program execution on an instruction-by-instruction basis (except for
accelerated programs running on a TNS/R machine). For more information, see
Section 16, Using Inspect With Accelerated Programs on TNS/R Systems.
Support for Many Source Languages
Inspect enables you to debug applications written in any of these source languages:
C
C++
COBOL (COBOL 74 or COBOL85)
FORTRAN
Pascal
pTAL
SCREEN COBOL
TAL
High-level Inspect supports the same set of commands for all the languages, with
minor variances for language-dependent extensions. For example, to ask Inspect for
the current value of a data item name rate, enter the high-level command DISPLAY
rate, regardless of the program's source language.