mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
There was a check to make sure that the frame had a valid function before the expression parser would allow decl lookups which was not needed. After removing this you can evaluate expressions correctly when stopped in a frame that only has a symbol or has no symbol context at all.
llvm-svn: 113611
This commit is contained in:
@@ -719,16 +719,7 @@ ClangExpressionDeclMap::GetDecls(NameSearchContext &context,
|
||||
// Back out in all cases where we're not fully initialized
|
||||
if (!m_exe_ctx || !m_exe_ctx->frame || !m_sym_ctx)
|
||||
return;
|
||||
|
||||
Function *function = m_sym_ctx->function;
|
||||
|
||||
if (!function)
|
||||
{
|
||||
if (log)
|
||||
log->Printf("Can't evaluate an expression when not in a function");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
ConstString name_cs(name);
|
||||
SymbolContextList sym_ctxs;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user