Hello,

Now that my build problems are fixed I have started to do a little more than 
extracting symbols from OSX applications and I have a strange situation. 
I create a target, add a symbolic breakpoint on 'main', launch the process and 
then inspect the threads + their stack frames. What troubles me is that I 
correctly find 1 thread but it always says there is 0 frames, meanwhile calling 
the method lldb::SBThread::GetStatus(..) and displaying its results correctly 
shows me what I'm expecting (a stack frame with the breakpoint on my main 
function). I have tried to step in lldb code and from what I understand 
GetNumFrames & all return 0 because it says the process is still running as it 
is unable to get some lock/mutex.

When I enable logs for API here is what I get:
LLDB> 1369872253.995728 SBProcess(0x1250bec00)::GetNumThreads () => 1
LLDB> 1369872253.995767 SBProcess(0x1250bec00)::Stop () => SBError 
(0x105602010): success
LLDB> 1369872253.995790 SBProcess(0x1250bec00)::GetThreadAtIndex (index=0) => 
SBThread(0x110b313d0)
LLDB> 1369872253.995807 SBThread(0x110b313d0)::GetNumFrames() => error: process 
is running
LLDB> 1369872253.995816 SBThread(0x110b313d0)::GetNumFrames () => 0
LLDB> 1369872253.995826 SBThread(0x110b313d0)::GetStopReason() => error: 
process is running
LLDB> 1369872253.995833 SBThread(0x110b313d0)::GetStopReason () => invalid
LLDB> 1369872253.999252 SBThread(0x110b313d0)::GetName() => error: process is 
running
LLDB> 1369872253.999277 SBThread(0x110b313d0)::GetName () => NULL

I am clearly missing something here but what?

S.
 
-- 
Sebastien Metrot
Yasound - CTO - Cofounder
[email protected]

_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to