From 471da24dfa31382c12c399bda53aa0d0fe441398 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 15 Nov 2010 01:34:18 +0000 Subject: [PATCH] Added recursive name lookup logging with depth which is commented out and is currently only enabled when we blow the stack. llvm-svn: 119101 --- lldb/source/Expression/ClangASTSource.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/source/Expression/ClangASTSource.cpp b/lldb/source/Expression/ClangASTSource.cpp index aa69abf1faf6..330c1da81293 100644 --- a/lldb/source/Expression/ClangASTSource.cpp +++ b/lldb/source/Expression/ClangASTSource.cpp @@ -99,10 +99,14 @@ DeclContext::lookup_result ClangASTSource::FindExternalVisibleDeclsByName 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 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; } -- GitLab