[Lldb-commits] [lldb] r262051 - SymbolFileDWARFDebugMap::FindTypes didn't obey the max_matches flag,

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 26 11:33:11 PST 2016


Author: jingham
Date: Fri Feb 26 13:33:11 2016
New Revision: 262051

URL: http://llvm.org/viewvc/llvm-project?rev=262051&view=rev
Log:
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.

Modified:
    lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp?rev=262051&r1=262050&r2=262051&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp Fri Feb 26 13:33:11 2016
@@ -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;
         });
     }
 




More information about the lldb-commits mailing list