[Lldb-commits] [lldb] r119101 - /lldb/trunk/source/Expression/ClangASTSource.cpp

Greg Clayton gclayton at apple.com
Sun Nov 14 17:34:18 PST 2010


Author: gclayton
Date: Sun Nov 14 19:34:18 2010
New Revision: 119101

URL: http://llvm.org/viewvc/llvm-project?rev=119101&view=rev
Log:
Added recursive name lookup logging with depth which is commented out and is currently only enabled when we blow the stack.

Modified:
    lldb/trunk/source/Expression/ClangASTSource.cpp

Modified: lldb/trunk/source/Expression/ClangASTSource.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangASTSource.cpp?rev=119101&r1=119100&r2=119101&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangASTSource.cpp (original)
+++ lldb/trunk/source/Expression/ClangASTSource.cpp Sun Nov 14 19:34:18 2010
@@ -99,10 +99,14 @@
         return DeclContext::lookup_result();
     }
     m_active_lookups.insert(uniqued_const_decl_name);
+//  static uint32_t g_depth = 0;
+//  ++g_depth;
+//  printf("[%5u] FindExternalVisibleDeclsByName() \"%s\"\n", g_depth, uniqued_const_decl_name);
     llvm::SmallVector<NamedDecl*, 4> name_decls;    
     NameSearchContext name_search_context(*this, name_decls, clang_decl_name, decl_ctx);
     m_decl_map.GetDecls(name_search_context, const_decl_name);
     DeclContext::lookup_result result (SetExternalVisibleDeclsForName (decl_ctx, clang_decl_name, name_decls));
+//  --g_depth;
     m_active_lookups.erase (uniqued_const_decl_name);
     return result;
 }





More information about the lldb-commits mailing list