summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBThread.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2013-11-08 04:59:54 +0000
committerJason Molenda <jmolenda@apple.com>2013-11-08 04:59:54 +0000
commit02706c3216c2bbe35db5b627d165b1357b10c934 (patch)
tree5b63f3edcf2d5dea5f3e46cdc933930a6923b6db /lldb/source/API/SBThread.cpp
parentd23177a27e05965e48bd4207f20e9e8bfe8a3116 (diff)
downloadbcm5719-llvm-02706c3216c2bbe35db5b627d165b1357b10c934.tar.gz
bcm5719-llvm-02706c3216c2bbe35db5b627d165b1357b10c934.zip
Add History subclasses for Thread, Unwind, RegisterContext.
Still working out some of the details of these classes but I wanted to get the overall structure checked in. <rdar://problem/15314068> llvm-svn: 194245
Diffstat (limited to 'lldb/source/API/SBThread.cpp')
-rw-r--r--lldb/source/API/SBThread.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp
index 4b54b1c0c1c..58a204fac6b 100644
--- a/lldb/source/API/SBThread.cpp
+++ b/lldb/source/API/SBThread.cpp
@@ -1303,7 +1303,8 @@ SBThread::GetExtendedBacktrace (const char *type)
if (runtime)
{
ThreadSP origin_thread = runtime->GetExtendedBacktrace (real_thread, type_const);
- sb_origin_thread.SetThread (origin_thread);
+ if (origin_thread && origin_thread->IsValid())
+ sb_origin_thread.SetThread (origin_thread);
}
}
}
OpenPOWER on IntegriCloud