Inspect Manual

Using Inspect With C++
Inspect Manual429164-006
9-12
Usage Considerations
Inspect does not support pointers to data members.
Breakpoints are not supported for:
Inlined functions
Member functions of locally defined classes
Cfront treats structures like classes. Inspect requires class-like syntax to access
fields of structures. The source below was used to generate this example.
struct Example {
int i;
int j;
};
struct Example var;
Inspect allows you to shorten data member names for C++ objects. Using the
previous example:
Inspect adds an “_” character to conversion operator functions and the new and
delete operators. For example, to set a breakpoint at the new operator type:
-PROGRAM-BREAK #operator_new
Note that Cfront may add intermediate fields in classes, thereby making it difficult
to display them.
-PROGRAM-DISPLAY r
r = 52
-PROGRAM-DISPLAY i
i = -10
-PROGRAM-DISPLAY *r
short = -10
-PROGRAM-DISPLAY var
var =
Example::i = 10
Example::j = 52
-PROGRAM-DISPLAY var.i
var.i = 10
-PROGRAM-DISPLAY var.Example::i
var.Example::i = 10