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:
Greg Clayton
2010-09-10 20:20:35 +00:00
parent 798725b24d
commit b57a127a53

View File

@@ -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;