From 8c71337abcc4cb3bf0aa1001e4a7b3ed98ad79d6 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 5 Nov 2013 11:00:35 +0000 Subject: Add the GetNumThreadOriginExtendedBacktraceTypes and GetThreadOriginExtendedBacktraceTypeAtIndex methods to SBProcess. Add documentation for the GetQueueName and GetQueueID methods to SBThread. llvm-svn: 194063 --- lldb/scripts/Python/interface/SBProcess.i | 20 ++++++++++++++++++++ lldb/scripts/Python/interface/SBThread.i | 10 ++++++++++ 2 files changed, 30 insertions(+) (limited to 'lldb/scripts/Python/interface') diff --git a/lldb/scripts/Python/interface/SBProcess.i b/lldb/scripts/Python/interface/SBProcess.i index 5f6c7e8487b..2ab4c19d872 100644 --- a/lldb/scripts/Python/interface/SBProcess.i +++ b/lldb/scripts/Python/interface/SBProcess.i @@ -354,6 +354,26 @@ public: lldb::SBError UnloadImage (uint32_t image_token); + %feature("autodoc", " + Return the number of different thread-origin extended backtraces + this process can support as a uint32_t. + When the process is stopped and you have an SBThread, lldb may be + able to show a backtrace of when that thread was originally created, + or the work item was enqueued to it (in the case of a libdispatch + queue). + ") GetNumThreadOriginExtendedBacktraceTypes; + + uint32_t + GetNumThreadOriginExtendedBacktraceTypes (); + + %feature("autodoc", " + Takes an index argument, returns the name of one of the thread-origin + extended backtrace methods as a str. + ") GetThreadOriginExtendedBacktraceTypeAtIndex; + + const char * + GetThreadOriginExtendedBacktraceTypeAtIndex (uint32_t idx); + %pythoncode %{ def __get_is_alive__(self): '''Returns "True" if the process is currently alive, "False" otherwise''' diff --git a/lldb/scripts/Python/interface/SBThread.i b/lldb/scripts/Python/interface/SBThread.i index c38be5f0e70..4f678b6353c 100644 --- a/lldb/scripts/Python/interface/SBThread.i +++ b/lldb/scripts/Python/interface/SBThread.i @@ -130,9 +130,19 @@ public: const char * GetName () const; + %feature("autodoc", " + Return the queue name associated with this thread, if any, as a str. + For example, with a libdispatch (aka Grand Central Dispatch) queue. + ") GetQueueName; + const char * GetQueueName() const; + %feature("autodoc", " + Return the dispatch_queue_id for this thread, if any, as a lldb::queue_id_t. + For example, with a libdispatch (aka Grand Central Dispatch) queue. + ") GetQueueID; + lldb::queue_id_t GetQueueID() const; -- cgit v1.2.3