summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-02-27 00:12:22 +0000
committerGreg Clayton <gclayton@apple.com>2015-02-27 00:12:22 +0000
commitf9da928993fd49fa6b59e964574a5aea5f2cbef8 (patch)
treeed4cb3fb59f6b314073717c681ca66f3eb2636ec
parent1cdefae9c47208ab0542432ce283d2ded721076b (diff)
downloadbcm5719-llvm-f9da928993fd49fa6b59e964574a5aea5f2cbef8.tar.gz
bcm5719-llvm-f9da928993fd49fa6b59e964574a5aea5f2cbef8.zip
Fixed an infinite recursion bug that could happen when using python operating system plug-ins where we would ask the operating system plug-in to update its threads and this would cause the plugin to run an expression which would eventually run IRForTarget::CreateResultVariable() which would try to get the selected thread and cause re-entrant bug.
<rdar://problem/19924734> llvm-svn: 230711
-rw-r--r--lldb/source/Expression/IRForTarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp
index e9a769add35..af565138495 100644
--- a/lldb/source/Expression/IRForTarget.cpp
+++ b/lldb/source/Expression/IRForTarget.cpp
@@ -601,7 +601,7 @@ IRForTarget::CreateResultVariable (llvm::Function &llvm_function)
lldb::TargetSP target_sp (m_data_allocator.GetTarget());
- lldb_private::ExecutionContext exe_ctx (target_sp.get(), true);
+ lldb_private::ExecutionContext exe_ctx (target_sp, true);
if (m_result_type.GetBitSize(exe_ctx.GetBestExecutionContextScope()) == 0)
{
lldb_private::StreamString type_desc_stream;
OpenPOWER on IntegriCloud