Re: [lldb-dev] Cannot resume process using LLDB API

2015-03-30 Thread Greg Clayton
> On Mar 28, 2015, at 10:25 AM, Ziming Song wrote: > > Thank you for your detailed explanation. > > My GUI front end is quite simple, and I set the SBDebugger to synchronous > mode to make my life easier (`debugger.SetAsync(false)`). Besides, I only use > single thread, so every time the API

Re: [lldb-dev] Cannot resume process using LLDB API

2015-03-28 Thread Ziming Song
p with that strategy.> Subject: Re: [lldb-dev] Cannot resume process using LLDB API > From: gclay...@apple.com > Date: Fri, 27 Mar 2015 10:52:43 -0700 > CC: lldb-dev@cs.uiuc.edu > To: s.zim...@hotmail.com > > You need to consume the process events that allow you to discover tha

Re: [lldb-dev] Cannot resume process using LLDB API

2015-03-27 Thread Greg Clayton
You need to consume the process events that allow you to discover that a process is stopped. You can see how to get process events by looking at the python example code: svn cat http://llvm.org/svn/llvm-project/lldb/trunk/examples/python/process_events.py Look at lines 174 - 245. Basically y

[lldb-dev] Cannot resume process using LLDB API

2015-03-26 Thread Ziming Song
This problem is very strange, but I can't resume execution using process.Continue(). If I write a simple program that create a debugger and a target, set a breakpoint on line 7 and launch a process. After stopping at line 7, I can use process.Continue() to resume it and next state is eStateExite