[lldb-dev] Continuing from a breakpoint with multiple threads

Adrian McCarthy amccarth at google.com
Mon Jun 1 13:40:51 PDT 2015


ThreadList::WillResume, near the bottom, ends up calling
ShouldResume(eStateSuspended) on the other threads, because the
ThreadPlanStepOverBreakpoint::StopOthers says it should.

Thread::ShouldResume effectively passes its parameter on to the thread's
WillResume, with the comment, "Let Thread subclasses do any special work
they need to prior to resuming."


On Mon, Jun 1, 2015 at 1:30 PM, Zachary Turner <zturner at google.com> wrote:

>
>
> On Mon, Jun 1, 2015 at 1:29 PM Zachary Turner <zturner at google.com> wrote:
>
>> I'm not quite ready to throw the blanket over this one yet :)
>>
>> What was the value of resume_state when it called WillResume()?  It
>> sounds like it was eStateSuspended, which if that's the case, then it still
>> seems like something deeper inside of LLDB's thread plans is confused about
>> something, because calling WillResume(eStateSuspended) means "The process
>> is seriously about to resume, and when it does, this thread is not going to
>> remain suspended".
>>
>
> s/is not going to/is going to/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150601/20536e52/attachment.html>


More information about the lldb-dev mailing list