summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangUserExpression.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-09-15 17:43:00 +0000
committerSean Callanan <scallanan@apple.com>2011-09-15 17:43:00 +0000
commit64fe1994d8336dd3969eabb4b9144d05d98b4aaf (patch)
treeb1c8765d8d9cb598f8360a95d5d656887ce9fa91 /lldb/source/Expression/ClangUserExpression.cpp
parent848b5b9903ceae373a0e18aa34e24ee5d44a2118 (diff)
downloadbcm5719-llvm-64fe1994d8336dd3969eabb4b9144d05d98b4aaf.tar.gz
bcm5719-llvm-64fe1994d8336dd3969eabb4b9144d05d98b4aaf.zip
Fixed a problem where the expression parser would
attempt to obtain information from the process even in cases where the process isn't available. llvm-svn: 139803
Diffstat (limited to 'lldb/source/Expression/ClangUserExpression.cpp')
-rw-r--r--lldb/source/Expression/ClangUserExpression.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp
index dd5af2a30ed..3e3d9d44f61 100644
--- a/lldb/source/Expression/ClangUserExpression.cpp
+++ b/lldb/source/Expression/ClangUserExpression.cpp
@@ -614,6 +614,9 @@ ClangUserExpression::EvaluateWithError (ExecutionContext &exe_ctx,
return execution_results;
}
}
+
+ if (exe_ctx.process == NULL)
+ execution_policy = eExecutionPolicyNever;
if (execution_policy != eExecutionPolicyNever && !exe_ctx.process->GetDynamicCheckers())
{
OpenPOWER on IntegriCloud