[lldb-dev] [Bug 16039] Cannot use 'continue' from the python api on Linux

Langmuir, Ben ben.langmuir at intel.com
Fri May 17 11:36:47 PDT 2013


Thanks for the clarification.  I’ve closed the bug after confirming my test works when not in async mode.

However, in async mode what do I need to do to handle the stop events?  I have a loop that polls for events, and I see

0x7f965c000940 Event: broadcaster = 0x2a8c488 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x2a8c450 (pid = 31924), state = stopped}

After I call ‘run’, and it hits the breakpoint.  What needs to be updated at this point to allow me to ‘continue’?

Thanks,

Ben

From: bugzilla-daemon at llvm.org [mailto:bugzilla-daemon at llvm.org]
Sent: Thursday, May 16, 2013 7:07 PM
To: Langmuir, Ben
Subject: [Bug 16039] Cannot use 'continue' from the python api on Linux

Jim Ingham<mailto:jingham at apple.com> changed bug 16039<http://llvm.org/bugs/show_bug.cgi?id=16039>
What

Removed

Added

CC



jingham at apple.com<mailto:jingham at apple.com>

Comment # 2<http://llvm.org/bugs/show_bug.cgi?id=16039#c2> on bug 16039<http://llvm.org/bugs/show_bug.cgi?id=16039> from Jim Ingham<mailto:jingham at apple.com>

This actually is just a script error.  When you create a new debugger by

default it is running in "async" mode.  In that mode, you have to handle the

stop events from running the target by hand.  If you don't want to do that

work, then just set the debugger to async mode with:



debugger.SetAsync(False)



If you do that, then your script runs correctly, at least on Mac OS X.

________________________________
You are receiving this mail because:

  *   You reported the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130517/c7c28925/attachment.html>


More information about the lldb-dev mailing list