Inspect Manual

Using Inspect With C
Inspect Manual429164-006
8-12
SCOPE
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.
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 defaults to STATEMENTS if no code-unit is specified. All
other instances of STATEMENTS and INSTRUCTIONS in using Inspect with C (all
code-location offsets as used in the BREAK command, for example) default to
INSTRUCTIONS if neither is specified.
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.