================ @@ -524,6 +524,19 @@ void ModuleList::FindGlobalVariables(const RegularExpression ®ex, module_sp->FindGlobalVariables(regex, max_matches, variable_list); } +const Symbol * +ModuleList::FindFirstSymbolWithNameAndType(ConstString name, + lldb::SymbolType symbol_type) const { + std::lock_guard<std::recursive_mutex> guard(m_modules_mutex); + for (const ModuleSP &module_sp : m_modules) { + const Symbol *symbol = + module_sp->FindFirstSymbolWithNameAndType(name, symbol_type); + if (symbol) + return symbol; ---------------- Michael137 wrote:
```suggestion if (const Symbol *symbol = module_sp->FindFirstSymbolWithNameAndType(name, symbol_type)) return symbol; ``` https://github.com/llvm/llvm-project/pull/117777 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits