[Lldb-commits] [lldb] r160195 - /lldb/trunk/source/Expression/ClangUserExpression.cpp
Sean Callanan
scallanan at apple.com
Fri Jul 13 14:20:29 PDT 2012
Author: spyffe
Date: Fri Jul 13 16:20:29 2012
New Revision: 160195
URL: http://llvm.org/viewvc/llvm-project?rev=160195&view=rev
Log:
Be a little more safe when checking whether the
current symbol context is a C++ or Objective-C
instance method.
Specifically, ensure that we fetch information
on the current block, not just the current
function.
Modified:
lldb/trunk/source/Expression/ClangUserExpression.cpp
Modified: lldb/trunk/source/Expression/ClangUserExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangUserExpression.cpp?rev=160195&r1=160194&r2=160195&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangUserExpression.cpp (original)
+++ lldb/trunk/source/Expression/ClangUserExpression.cpp Fri Jul 13 16:20:29 2012
@@ -110,7 +110,7 @@
if (frame == NULL)
return;
- SymbolContext sym_ctx = frame->GetSymbolContext(lldb::eSymbolContextFunction);
+ SymbolContext sym_ctx = frame->GetSymbolContext(lldb::eSymbolContextFunction | lldb::eSymbolContextBlock);
if (!sym_ctx.function)
return;
More information about the lldb-commits
mailing list