summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2013-11-16 01:24:22 +0000
committerJason Molenda <jmolenda@apple.com>2013-11-16 01:24:22 +0000
commit8ee9cb589191373d1e157826021991db46c2c58c (patch)
tree76c5c64af4128c1cfdb472cae0d32c47a0b39343 /lldb/scripts/Python/interface
parent5dcabbc9e8871d4eb8f6ceacf8401a7d8aada4ad (diff)
downloadbcm5719-llvm-8ee9cb589191373d1e157826021991db46c2c58c.tar.gz
bcm5719-llvm-8ee9cb589191373d1e157826021991db46c2c58c.zip
Add a new SBThread::GetExtendedBacktraceOriginatingIndexID() method
(and same thing to Thread base class) which can be used when looking at an ExtendedBacktrace thread; it will try to find the IndexID() of the original thread that was executing this backtrace when it was recorded. If lldb can't find a record of that thread, it will return the same value as IndexID() for the ExtendedBacktrace thread. llvm-svn: 194912
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r--lldb/scripts/Python/interface/SBThread.i14
1 files changed, 13 insertions, 1 deletions
diff --git a/lldb/scripts/Python/interface/SBThread.i b/lldb/scripts/Python/interface/SBThread.i
index 145016aecf0..92ea929c6b9 100644
--- a/lldb/scripts/Python/interface/SBThread.i
+++ b/lldb/scripts/Python/interface/SBThread.i
@@ -239,7 +239,7 @@ public:
bool
operator != (const lldb::SBThread &rhs) const;
-
+
%feature("autodoc","
Given an argument of str to specify the type of thread-origin extended
backtrace to retrieve, query whether the origin of this thread is
@@ -253,6 +253,18 @@ public:
lldb::SBThread
GetExtendedBacktraceThread (const char *type);
+ %feature("autodoc","
+ Takes no arguments, returns a uint32_t.
+ If this SBThread is an ExtendedBacktrace thread, get the IndexID of the
+ original thread that this ExtendedBacktrace thread represents, if
+ available. The thread that was running this backtrace in the past may
+ not have been registered with lldb's thread index (if it was created,
+ did its work, and was destroyed without lldb ever stopping execution).
+ In that case, this ExtendedBacktrace thread's IndexID will be returned.
+ ") GetExtendedBacktraceOriginatingIndexID;
+ uint32_t
+ GetExtendedBacktraceOriginatingIndexID();
+
%pythoncode %{
class frames_access(object):
'''A helper object that will lazily hand out frames for a thread when supplied an index.'''
OpenPOWER on IntegriCloud