Inspect Manual

Using Inspect With C
Inspect Manual429164-006
8-10
Inspect Enhancements and Restrictions for C
In this examples, the member is explicitly defined so that the value selected will be
processed:
In this example, Inspect displays all members because no member is specified:
Inspect Enhancements and Restrictions for C
The following subsections discuss certain differences between programming with C
and using Inspect to debug C programs.
Uppercase and Lowercase Letters
For C identifiers, Inspect distinguishes between uppercase and lowercase letters. In a
multi-language environment, however, Inspect requires that you represent the data in
the form that the particular language demands. For example, if C is the language of
the current scope, any reference to TAL must be in uppercase. If a TAL identifier is
entered in lowercase, Inspect will not upshift the identifier for resolution; it remains
undefined. For example, if you are inspecting a C routine, you can display the TAL
variables VAR_A and VAR^B by entering:
Defining Objects in Block Structure
When you define a block of objects by putting them after the left brace that introduces
a compound (block) statement, Inspect only resolves object references that are not
duplicates. If there are duplicates, they are ambiguous to Inspect; therefore, Inspect
displays the error message:
-COBJ-DISPLAY uval.ival ;COMMENT integer value displayed
UVAL.IVAL = integer value
-COBJ-DISPLAY uval.fval ;COMMENT floating point value
UVAL.FVAL = floating point value
-COBJ-DISPLAY uval.pval ;COMMENT pointer type
UVAL.PVAL = pointer to string
-COBJ-DISPLAY uval
UVAL =
IVAL = integer value
FVAL = floating point value
PVAL = pointer to string
--DISPLAY VAR_A, VAR^B
** Inspect error 98 ** Qualification required to resolve ambiguous reference:
identifier