Chapter 4: Viewing Code and Data
Displaying Program Context
To display the address of the C+ + object
invoking a member function
• Display the value of the function's this pointer.
If the program has stopped at a function, you can find out the address of the
object which invoked the function.
The program counter must be inside the function; otherwise you may see a
"Local variable not alive" error message.
Example
To see the address of the object that invoked the cfunc function in class C,
enter the following string in the entry buffer:
C::cfunc\this
then select Display→Var/Expression ().
150