[Lldb-commits] [lldb] r113611 - /lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
Greg Clayton
gclayton at apple.com
Fri Sep 10 13:20:35 PDT 2010
Author: gclayton
Date: Fri Sep 10 15:20:35 2010
New Revision: 113611
URL: http://llvm.org/viewvc/llvm-project?rev=113611&view=rev
Log:
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.
Modified:
lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
Modified: lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp?rev=113611&r1=113610&r2=113611&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Fri Sep 10 15:20:35 2010
@@ -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;
More information about the lldb-commits
mailing list