From b57a127a53213938fe9e3556621275e76b95d6ed Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 10 Sep 2010 20:20:35 +0000 Subject: [PATCH] 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 --- lldb/source/Expression/ClangExpressionDeclMap.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp index 24eab33bae31..ef0be1e88490 100644 --- a/lldb/source/Expression/ClangExpressionDeclMap.cpp +++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp @@ -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;