[Lldb-commits] [lldb] r142712 - /lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
Sean Callanan
scallanan at apple.com
Fri Oct 21 18:58:08 PDT 2011
Author: spyffe
Date: Fri Oct 21 20:58:08 2011
New Revision: 142712
URL: http://llvm.org/viewvc/llvm-project?rev=142712&view=rev
Log:
Made the expression parser handle persistent variables
correctly even after the process has quit.
Modified:
lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
Modified: lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp?rev=142712&r1=142711&r2=142712&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Fri Oct 21 20:58:08 2011
@@ -972,9 +972,11 @@
{
if ((persistent_var_sp->m_flags & ClangExpressionVariable::EVIsProgramReference ||
persistent_var_sp->m_flags & ClangExpressionVariable::EVIsLLDBAllocated) &&
- persistent_var_sp->m_live_sp)
+ persistent_var_sp->m_live_sp &&
+ m_parser_vars->m_exe_ctx->GetProcessSP() &&
+ m_parser_vars->m_exe_ctx->GetProcessSP()->IsAlive())
{
- return persistent_var_sp->m_live_sp->GetValue();
+ return persistent_var_sp->m_live_sp->GetValue();
}
else
{
More information about the lldb-commits
mailing list