[Lldb-commits] [lldb] r139823 - /lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp

Sean Callanan scallanan at apple.com
Thu Sep 15 11:41:04 PDT 2011


Author: spyffe
Date: Thu Sep 15 13:41:04 2011
New Revision: 139823

URL: http://llvm.org/viewvc/llvm-project?rev=139823&view=rev
Log:
Fixed a problem where the symbol context was not
being initialized properly in the absence of a
process.

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=139823&r1=139822&r2=139823&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Thu Sep 15 13:41:04 2011
@@ -76,6 +76,9 @@
         m_parser_vars->m_sym_ctx = exe_ctx.thread->GetStackFrameAtIndex(0)->GetSymbolContext(lldb::eSymbolContextEverything);
     else if (exe_ctx.process)
         m_parser_vars->m_sym_ctx = SymbolContext(exe_ctx.target->GetSP(), ModuleSP());
+    else if (exe_ctx.target)
+        m_parser_vars->m_sym_ctx = SymbolContext(exe_ctx.target->GetSP(), ModuleSP());
+    
     if (exe_ctx.target)
         m_parser_vars->m_persistent_vars = &exe_ctx.target->GetPersistentVariables();
     





More information about the lldb-commits mailing list