Inspect Manual

Using Inspect With C
Inspect Manual429164-006
8-6
Default Values
identifier can also be the name of a structured object or user-defined data
type; identifier then specifies the entire object or the type definition.
data-reference '[' subscript-range ']'
specifies an array object.
subscript-range
specifies the subscript of an array element or the subscript range of a
group of array elements.
data-reference.identifier
specifies a field of a structure object.
data-reference->identifier
specifies a field of a structure referenced using a structure pointer.
*data-reference
specifies the value referenced by a pointer object.
Default Values
If you do not specify scope-path, Inspect uses the current scope path.
Usage Considerations
You must compile with the SYMBOLS pragma to use data-location.
A data location must specify a data object in an active scope unit.
Examples
Given a C function named cfunct that contains the object declaration int bytes,
you can have these data location expressions:
Data Location Specifies
#cfunct.nbytes The most recent instance of nbytes.
#cfunct(-1).nbytes The second-most recent instance of nbytes.
#cfunct(1).nbytes The oldest (first) instance of nbytes.