Index: lldb/include/lldb/Core/Module.h =================================================================== --- lldb/include/lldb/Core/Module.h +++ lldb/include/lldb/Core/Module.h @@ -62,6 +62,8 @@ struct ModuleFunctionOptions { /// Include the symbol table. bool include_symbols = false; + /// Skip the debug info and only look at the symbol table. + bool symbols_only = false; /// Include inlined functions. bool include_inlines = false; }; Index: lldb/source/Core/Module.cpp =================================================================== --- lldb/source/Core/Module.cpp +++ lldb/source/Core/Module.cpp @@ -807,9 +807,10 @@ LookupInfo lookup_info(name, name_type_mask, eLanguageTypeUnknown); if (symbols) { - symbols->FindFunctions(lookup_info.GetLookupName(), parent_decl_ctx, - lookup_info.GetNameTypeMask(), - options.include_inlines, sc_list); + if (!options.symbols_only) + symbols->FindFunctions(lookup_info.GetLookupName(), parent_decl_ctx, + lookup_info.GetNameTypeMask(), + options.include_inlines, sc_list); // Now check our symbol table for symbols that are code symbols if // requested @@ -827,8 +828,9 @@ lookup_info.Prune(sc_list, old_size); } else { if (symbols) { - symbols->FindFunctions(name, parent_decl_ctx, name_type_mask, - options.include_inlines, sc_list); + if (!options.symbols_only) + symbols->FindFunctions(name, parent_decl_ctx, name_type_mask, + options.include_inlines, sc_list); // Now check our symbol table for symbols that are code symbols if // requested @@ -847,7 +849,9 @@ const size_t start_size = sc_list.GetSize(); if (SymbolFile *symbols = GetSymbolFile()) { - symbols->FindFunctions(regex, options.include_inlines, sc_list); + + if (!options.symbols_only) + symbols->FindFunctions(regex, options.include_inlines, sc_list); // Now check our symbol table for symbols that are code symbols if // requested Index: lldb/source/Expression/IRExecutionUnit.cpp =================================================================== --- lldb/source/Expression/IRExecutionUnit.cpp +++ lldb/source/Expression/IRExecutionUnit.cpp @@ -851,8 +851,10 @@ return false; }; + // Skip the debug info and only look at the symbol table. ModuleFunctionOptions function_options; function_options.include_symbols = true; + function_options.symbols_only = true; function_options.include_inlines = false; for (const SearchSpec &spec : specs) {