summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2013-11-05 11:00:35 +0000
committerJason Molenda <jmolenda@apple.com>2013-11-05 11:00:35 +0000
commit8c71337abcc4cb3bf0aa1001e4a7b3ed98ad79d6 (patch)
tree991767950479311b3794f403271e3f2f075f466d /lldb/scripts/Python/interface
parent64582671af2441582c69a0bce264bf70ed00e866 (diff)
downloadbcm5719-llvm-8c71337abcc4cb3bf0aa1001e4a7b3ed98ad79d6.tar.gz
bcm5719-llvm-8c71337abcc4cb3bf0aa1001e4a7b3ed98ad79d6.zip
Add the GetNumThreadOriginExtendedBacktraceTypes and
GetThreadOriginExtendedBacktraceTypeAtIndex methods to SBProcess. Add documentation for the GetQueueName and GetQueueID methods to SBThread. <rdar://problem/15314369> llvm-svn: 194063
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r--lldb/scripts/Python/interface/SBProcess.i20
-rw-r--r--lldb/scripts/Python/interface/SBThread.i10
2 files changed, 30 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud