Inspect Manual

Using Inspect With Pascal
Inspect Manual429164-006
12-2
Code Locations
Code Locations
Here is the syntax you use to identify Pascal code locations in Inspect.
scope-path
specifies the function containing the code location. When followed by a code
offset, scope-path specifies the base of the function; otherwise, it specifies the
primary entry point of the function.
[ scope-path. ] code-spec
specifies a named or numbered location in the function defined by the given scope
path (or the current scope path if you omit the scope path).
scope-unit
specifies the primary entry point of the scope unit. scope-unit must be the
same as the last scope unit named in scope-path (or the current scope
path).
label
specifies the statement following a given label in the source code.
statement-number
specifies the statement beginning at the given statement number. To see
statement numbers, use the SOURCE command after you have set your
location format to statements. For more information, see SET LOCATION
FORMAT on page 6-175.
code-location:
{ scope-path } [FROM module ] [ offset ]...
{ [scope-path.]code-spec }
code-spec: one of
scope-unit
label
statement-number
#line-number [ (source-file) ]
offset:
{ + | - } num [ code-unit ]
code-unit: one of
INSTRUCTION[S]
STATEMENT[S]
VERB[S]