From 406ba45f24d2f238f16f213f7ffa8435654d78c6 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Fri, 26 Feb 2016 19:33:11 +0000 Subject: [PATCH] SymbolFileDWARFDebugMap::FindTypes didn't obey the max_matches flag, but kept looking through .o files even after it had found as many matches as were requested. llvm-svn: 262051 --- lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp index 793c81c..6dcf974 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp @@ -1297,7 +1297,10 @@ SymbolFileDWARFDebugMap::FindTypes { ForEachSymbolFile([&](SymbolFileDWARF *oso_dwarf) -> bool { oso_dwarf->FindTypes (sc, name, parent_decl_ctx, append, max_matches, searched_symbol_files, types); - return false; + if (types.GetSize() >= max_matches) + return true; + else + return false; }); } -- 2.7.4