forked from OSchip/llvm-project
Fixed a problem where the symbol context was not
being initialized properly in the absence of a process. llvm-svn: 139823
This commit is contained in:
parent
233f130101
commit
c2ff27446d
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue