[lldb-dev] Variable shadowing

2016-06-22 Thread Bogdan Hopulele via lldb-dev
Hi all, I'm using lldb 3.9 through the C++ API and I'm trying to determine if a local variable is shadowed or not with no luck. For the code below: 1. Is there an API call, that I somehow missed, that can tell me that (v = 2) shadows (v = 1)? 2. Can I rely on their order in the SB

Re: [lldb-dev] Variable shadowing

2016-06-23 Thread Bogdan Hopulele via lldb-dev
Thanks! Using the blocks I can get all the information I need: locals, function statics and arguments plus shadowing. Now I only need globals which I can get using "target.FindGlobalVariables('.', 1000, eMatchTypeRegex)" and search for variable names in the dictionary. Your script seems pretty

[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

[lldb-dev] Generating an event when calling SBThread::SetSelectedFrame and SBProcess::SetSelectedThreadByID

2016-10-25 Thread Bogdan Hopulele via lldb-dev
Hi all, Does anyone know how I can get LLDB to generate events when calling SBProcess::SetSelectedThreadByID? SetSelectedThreadByID calls SetSelectedThreadByIndexID, but it doesn't pass the notify parameter so it defaults to false in ThreadList.h . Same story for SBThread::SetSelectedFrame. Wh

Re: [lldb-dev] Generating an event when calling SBThread::SetSelectedFrame and SBProcess::SetSelectedThreadByID

2016-10-26 Thread Bogdan Hopulele via lldb-dev
cleaner to me. > > BTW, the lldb command line commands DO send events when the selected > thread/frame/etc. changes. That's necessary since a program driving lldb has > no good way of knowing what the command line commands have done otherwise. > > Jim > > >&g