From b9ffa98cab65ecb1e66a194bb9641735ef8e7eb2 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Fri, 25 Apr 2014 00:01:15 +0000 Subject: Add a new SBThread::GetQueue() method to get the queue that is currently associated with a given thread, on relevant targets. Change the queue detection code to verify that the queues associated with all live threads are included in the list. llvm-svn: 207160 --- lldb/scripts/Python/interface/SBThread.i | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lldb/scripts/Python/interface') diff --git a/lldb/scripts/Python/interface/SBThread.i b/lldb/scripts/Python/interface/SBThread.i index f2517366160..ecf0475dec1 100644 --- a/lldb/scripts/Python/interface/SBThread.i +++ b/lldb/scripts/Python/interface/SBThread.i @@ -165,6 +165,19 @@ public: lldb::queue_id_t GetQueueID() const; + %feature("autodoc", " + Return the SBQueue for this thread. If this thread is not currently associated + with a libdispatch queue, the SBQueue object's IsValid() method will return false. + If this SBThread is actually a HistoryThread, we may be able to provide QueueID + and QueueName, but not provide an SBQueue. Those individual attributes may have + been saved for the HistoryThread without enough information to reconstitute the + entire SBQueue at that time. + This method takes no arguments, returns an SBQueue. + ") GetQueue; + + lldb::SBQueue + GetQueue () const; + void StepOver (lldb::RunMode stop_other_threads = lldb::eOnlyDuringStepping); -- cgit v1.2.3