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.

git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@113611 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpressionDeclMap.cpp b/source/Expression/ClangExpressionDeclMap.cpp
index 24eab33..ef0be1e 100644
--- a/source/Expression/ClangExpressionDeclMap.cpp
+++ b/source/Expression/ClangExpressionDeclMap.cpp
@@ -719,16 +719,7 @@
     // 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;