summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangUserExpression.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-06-20 17:32:44 +0000
committerJim Ingham <jingham@apple.com>2011-06-20 17:32:44 +0000
commitf72ce3a216ea4364724dff20955e3d9b63977fdc (patch)
treec2b330455f71b47f3e64007377d690ed3c4ab9e1 /lldb/source/Expression/ClangUserExpression.cpp
parente8ae1db4d87cd6de44c19e59f6a6c61e4c957dd3 (diff)
downloadbcm5719-llvm-f72ce3a216ea4364724dff20955e3d9b63977fdc.tar.gz
bcm5719-llvm-f72ce3a216ea4364724dff20955e3d9b63977fdc.zip
Use the dyld_mode, image_infos & image_infos_count passed into the shared library notification function
to update libraries rather than reading the whole all_imaage_infos structure every time we get notified. llvm-svn: 133448
Diffstat (limited to 'lldb/source/Expression/ClangUserExpression.cpp')
-rw-r--r--lldb/source/Expression/ClangUserExpression.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp
index 119b142e058..3c8c3434293 100644
--- a/lldb/source/Expression/ClangUserExpression.cpp
+++ b/lldb/source/Expression/ClangUserExpression.cpp
@@ -597,9 +597,9 @@ ClangUserExpression::Evaluate (ExecutionContext &exe_ctx,
Error error;
ExecutionResults execution_results = eExecutionSetupError;
- if (exe_ctx.process == NULL)
+ if (exe_ctx.process == NULL || exe_ctx.process->GetState() != lldb::eStateStopped)
{
- error.SetErrorString ("Must have a process to evaluate expressions.");
+ error.SetErrorString ("Must have a live but stopped process to evaluate expressions.");
result_valobj_sp = ValueObjectConstResult::Create (NULL, error);
return eExecutionSetupError;
OpenPOWER on IntegriCloud