Inspect Manual

Using Inspect With C
Inspect Manual429164-006
8-5
Data Locations
Data Locations
Here is the syntax you use to identify C data locations in Inspect.
scope-path [ (instance) ]
specifies the function containing the data item.
(instance)
identifies a specific activation of the data item’s parent function. You should
specify an instance only when you want to identify a local data item in a
recursive function.
#data-block
specifies the global data block containing the object specified by data-
reference. In HP C, the name of a module’s global data block is a circumflex (^)
followed by the file name of the module’s base source file (the file specified as
input to the HP C compiler). For example, the name of the global data block for
the module compiled from the file MODULE1 is ^MODULE1.
You should specify a global data block only when you have two global objects of
the same name in two different modules; neither module can be declared extern.
data-reference
specifies the data item using C syntax. The recursion in the definition of data-
reference enables you to refer to complex C data structures.
identifier
specifies a simple or pointer object. When used in the DISPLAY command,
identifier can also be the name of a structured object; identifier then
specifies the entire object. When used in the INFO IDENTIFIER command,
data-location:
[ scope-path [ (instance) ] . ] data-reference
[ #data-block. ]
instance:
[ + | - ] integer
data-reference: one of
identifier
data-reference '[' subscript-range ']'
data-reference.identifier
data-reference->identifier
*data-reference
subscript-range:
expression [ :expression ]