diff options
| author | Jim Ingham <jingham@apple.com> | 2011-06-20 17:32:44 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2011-06-20 17:32:44 +0000 |
| commit | f72ce3a216ea4364724dff20955e3d9b63977fdc (patch) | |
| tree | c2b330455f71b47f3e64007377d690ed3c4ab9e1 /lldb/source/Expression/ClangUserExpression.cpp | |
| parent | e8ae1db4d87cd6de44c19e59f6a6c61e4c957dd3 (diff) | |
| download | bcm5719-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.cpp | 4 |
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; |

