summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/ThreadList.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-11-13 21:28:53 +0000
committerZachary Turner <zturner@google.com>2015-11-13 21:28:53 +0000
commit0ee8282f4a55c649d07c4ea32eee7a3767d6bc30 (patch)
treedb083e3305f9b108a418de72e5874c17398678d2 /lldb/source/Target/ThreadList.cpp
parent2419f1d57cd20c3d8a0161f24700a47172a46b2f (diff)
downloadbcm5719-llvm-0ee8282f4a55c649d07c4ea32eee7a3767d6bc30.tar.gz
bcm5719-llvm-0ee8282f4a55c649d07c4ea32eee7a3767d6bc30.zip
Add a null check against the ThreadPlan
I'm seeing some cases where the ThreadPlan is null. It could be a sign of a valid race condition, but at least we shouldn't crash. llvm-svn: 253086
Diffstat (limited to 'lldb/source/Target/ThreadList.cpp')
-rw-r--r--lldb/source/Target/ThreadList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Target/ThreadList.cpp b/lldb/source/Target/ThreadList.cpp
index f098a887d5c..10e764b8164 100644
--- a/lldb/source/Target/ThreadList.cpp
+++ b/lldb/source/Target/ThreadList.cpp
@@ -538,7 +538,7 @@ ThreadList::WillResume ()
for (pos = m_threads.begin(); pos != end; ++pos)
{
- if ((*pos)->GetResumeState() != eStateSuspended &&
+ if ((*pos)->GetResumeState() != eStateSuspended && (*pos)->GetCurrentPlan() &&
(*pos)->GetCurrentPlan()->StopOthers())
{
if ((*pos)->IsOperatingSystemPluginThread() && !(*pos)->GetBackingThread())
OpenPOWER on IntegriCloud