summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangExpressionDeclMap.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-09-15 18:41:04 +0000
committerSean Callanan <scallanan@apple.com>2011-09-15 18:41:04 +0000
commitc2ff27446dc7f7399ada50b073ebfd423f2fb35d (patch)
treed5995957b682a8603816a9aa6a2abb8793e3e67e /lldb/source/Expression/ClangExpressionDeclMap.cpp
parent233f130101760846a8111d2a845a771c453edd50 (diff)
downloadbcm5719-llvm-c2ff27446dc7f7399ada50b073ebfd423f2fb35d.tar.gz
bcm5719-llvm-c2ff27446dc7f7399ada50b073ebfd423f2fb35d.zip
Fixed a problem where the symbol context was not
being initialized properly in the absence of a process. llvm-svn: 139823
Diffstat (limited to 'lldb/source/Expression/ClangExpressionDeclMap.cpp')
-rw-r--r--lldb/source/Expression/ClangExpressionDeclMap.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp
index 09b671a1677..d0dd4a5f022 100644
--- a/lldb/source/Expression/ClangExpressionDeclMap.cpp
+++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp
@@ -76,6 +76,9 @@ ClangExpressionDeclMap::WillParse(ExecutionContext &exe_ctx)
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();
OpenPOWER on IntegriCloud