Re: [lldb-dev] Getting the address of a variable

2016-06-29 Thread Greg Clayton via lldb-dev
> On Jun 29, 2016, at 9:51 AM, Bogdan Hopulele via lldb-dev > wrote: > > Hi all, > > Given a file name, line number and variable name, I am trying to determine > the address. I tried the following approach: > ยท First I got the block corresponding to the file and line: > o from the

[lldb-dev] Getting the address of a variable

2016-06-29 Thread Bogdan Hopulele via lldb-dev
Hi all, Given a file name, line number and variable name, I am trying to determine the address. I tried the following approach: * First I got the block corresponding to the file and line: o from the file name I got a SBCompileUnit o using the SBCompileUnit and line number I got a S