[Lldb-commits] [PATCH] add missing SBThread stuff to python API
jingham at apple.com
jingham at apple.com
Thu Oct 3 16:07:21 PDT 2013
On Oct 3, 2013, at 3:28 PM, Malea, Daniel <daniel.malea at intel.com> wrote:
> Thanks Jim; committed in r191933. Indeed I plan to allow users to issue
> lldb commands from the new python UI. Thanks for the hint about the events
> not being generated from the SBAPI -- I'll keep that in mind when I get to
> that stage.
This sounds exciting!
> Interestingly, I'm not seeing thread events get generated when threads are
> spawned either (in fact, is there even an event type for that?) but this
> is more of a minor issue right now..
That doesn't surprise me since on OS X we don't follow new thread creation in real time, so I wouldn't have had any place to generate this event.
> I'll have another 'fix' for review shortly -- this time for
Bring it on!
> On 2013-10-03 5:51 PM, "jingham at apple.com" <jingham at apple.com> wrote:
>> That was an oversight, they should definitely be available in Python.
>> Their purpose is to keep the SB API user's notion of the selected thread
>> in sync with the command-line's version. So they don't get broadcast
>> when the SB API's directly change say the selected frame or the selected
>> thread, only when the command line does. That means listening to these
>> events won't require you do any extra work in your ordinary use of the SB
>> API's. But if you were trying to write some UI for lldb in Python, and
>> were planning to offer a way to invoke lldb commands as well, you would
>> need these events.
>> On Oct 3, 2013, at 1:13 PM, Malea, Daniel <daniel.malea at intel.com> wrote:
>>> Hi all,
>>> I'm starting to hack on an alternative interface to LLDB, and I noticed
>>> the Python SBThread interface is missing the BroadcasterBits enum and
>>> the GetBroadcasterClassName static function.
>>> This tiny patch adds both of those missing things to the SBThread.i
>>> interface file. OK to commit, or is it a bad idea to listen for thread
>>> events from python?
>>> lldb-commits mailing list
>>> lldb-commits at cs.uiuc.edu
More information about the lldb-commits