aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/interface/SBThread.i
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-07-13 20:18:18 +0000
committerJim Ingham <jingham@apple.com>2012-07-13 20:18:18 +0000
commit18b4689639782462532fce44dfd2854ccdbf01ff (patch)
treec68377fc8053410f4996b17df463097875f639f0 /lldb/scripts/Python/interface/SBThread.i
parent5ed3ac189f6bb25a47c863bac78468eeb151ad76 (diff)
downloadllvm-18b4689639782462532fce44dfd2854ccdbf01ff.zip
llvm-18b4689639782462532fce44dfd2854ccdbf01ff.tar.gz
llvm-18b4689639782462532fce44dfd2854ccdbf01ff.tar.bz2
Add accessors on process to get & set the selected thread by IndexID (useful since that's the one that "thread list" shows and it won't get reused even if the underlying system thread ID gets reused.
llvm-svn: 160187
Diffstat (limited to 'lldb/scripts/Python/interface/SBThread.i')
-rw-r--r--lldb/scripts/Python/interface/SBThread.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBThread.i b/lldb/scripts/Python/interface/SBThread.i
index ac6e699..2f012ecf 100644
--- a/lldb/scripts/Python/interface/SBThread.i
+++ b/lldb/scripts/Python/interface/SBThread.i
@@ -12,6 +12,12 @@ namespace lldb {
%feature("docstring",
"Represents a thread of execution. SBProcess contains SBThread(s).
+SBThreads can be referred to by their ID, which maps to the system specific thread
+identifier, or by IndexID. The ID may or may not be unique depending on whether the
+system reuses its thread identifiers. The IndexID is a monotonically increasing identifier
+that will always uniquely reference a particular thread, and when that thread goes
+away it will not be reused.
+
SBThread supports frame iteration. For example (from test/python_api/
lldbutil/iter/TestLLDBIterator.py),