Re: [lldb-dev] GetSymbolContext(lldb.eSymbolContextEverything)

2016-06-22 Thread Kamenee Arumugam via lldb-dev
Thanks a lot Greg for your input. I have tried the 2nd option to parse the out of image lookup command and it works perfectly fine for me. Regards, Kamenee On Tue, Jun 21, 2016 at 2:21 PM, Greg Clayton wrote: > We currently don't expose this information through the API, though we > could. You

Re: [lldb-dev] GetSymbolContext(lldb.eSymbolContextEverything)

2016-06-21 Thread Greg Clayton via lldb-dev
We currently don't expose this information through the API, though we could. You could add a new method to SBValue: namespace lldb { class SBValue { SBData GetDWARFLocation(); } }; This could return the DWARF location as a SBData object. Then you could consume the data by parsing the

Re: [lldb-dev] GetSymbolContext(lldb.eSymbolContextEverything)

2016-06-21 Thread Kamenee Arumugam via lldb-dev
Hi Greg, Thanks for your reply. I did try the method you mention above but variable.GetLocation() only provide me the memory address of the variable. What exactly I am looking for was the register offset that stores variable i here. Example, I am looking for method able to output the one highligh

Re: [lldb-dev] GetSymbolContext(lldb.eSymbolContextEverything)

2016-06-20 Thread Greg Clayton via lldb-dev
The variables are available through the frame in your symbol context. You have a line of code commented out in your script: #variable = frame.GetVariables(target,True,True,True) Change it to: get_arguments = True # Get argument variables get_locals = True # Get local variabl