Inspect Manual

Using Inspect With C++
Inspect Manual429164-006
9-2
Code Locations
Code Locations
Here is the syntax you use to identify C++ 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).
function
specifies the primary entry point of the function. function must be the same
as the function 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
function
label
statement-number
#line-number [ (source-file) ]
class::function
offset:
{ + | - } num [ code-unit ]
code-unit: one of
INSTRUCTION[S]
STATEMENT[S]
VERB[S]