Inspect Manual
Using Inspect With C++
Inspect Manual—429164-006
9-14
MATCH
MATCH
Use the SCOPE clause of the MATCH command to find all the member functions
of a given class. For example:
-PROGRAM-MATCH SCOPE Class::*
It can also be used to find all classes that implement a given function. For
example:
-PROGRAM-MATCH SCOPE *error
SCOPE
If you have identifiers of the same name in different scope units, be sure that you
qualify the identifiers enough for Inspect to distinguish them. If you have a function
named the same, Inspect will prompt you to resolve the ambiguity.
Since scope units may be overloaded in C++, Inspect may not be able to
determine the specified scope. In the case of ambiguity, you will be prompted for
clarification.
SET RADIX
Even if you set your input radix to hexadecimal, you must still prefix a hexadecimal
value with 0x or 0X if its first digit is aboveþ9; otherwise, Inspect interprets the
value as an identifier.
STEP
The STEP command requires caution if switch statements or for loops are in
the path. The stepping behavior of these two statements is unexpected.
Recall that a switch selects one statement from a set of statements, depending
on the value of a numeric expression. A STEP of one statement from the
beginning of a switch statement takes you to the end of the entire switch
statement. A subsequent STEP of one statement will take you to the selected
case or default statement.
If your process is at the beginning of a single-statement for loop (the loop body is
a single statement, not a block), entering STEP 1S gets you to the beginning of the
single statement, and entering STEP 2S completes execution of the loop.