Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-debug-dev] Address from CLocalVariable

> From: cdt-debug-dev-bounces@xxxxxxxxxxx [mailto:cdt-debug-dev-
> bounces@xxxxxxxxxxx] On Behalf Of Mikhail Khodjaiants
> Sent: Friday, October 20, 2006 5:10 AM
> To: CDT Debug developers list
> Subject: RE: [cdt-debug-dev] Address from CLocalVariable
> 
> Hi Brent,
> 
> The variables shown in the Modules view are global variables. The
> variables listed in the Variables view are local variables allocated in
> the current stack frame. Yes, there is no way get the address of a local
> variable, but there is a way to get the address of a stack frame -
> ICStackFrame.getAddress.
>

For the address of the local variable, maybe he could evaluate the
expression on the Stackframe:

Stackframe.evaluateExpression("&myLocalVariable");


Note: I did not try it.



Back to the top