[Lldb-commits] [lldb] r153076 - /lldb/trunk/source/Core/ModuleList.cpp

Greg Clayton gclayton at apple.com
Mon Mar 19 18:31:19 PDT 2012


Author: gclayton
Date: Mon Mar 19 20:31:19 2012
New Revision: 153076

URL: http://llvm.org/viewvc/llvm-project?rev=153076&view=rev
Log:
Make sure that if a UUID was passed in, and we found a match, that should be enough for us.


Modified:
    lldb/trunk/source/Core/ModuleList.cpp

Modified: lldb/trunk/source/Core/ModuleList.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ModuleList.cpp?rev=153076&r1=153075&r2=153076&view=diff
==============================================================================
--- lldb/trunk/source/Core/ModuleList.cpp (original)
+++ lldb/trunk/source/Core/ModuleList.cpp Mon Mar 19 20:31:19 2012
@@ -613,6 +613,9 @@
             for (uint32_t module_idx = 0; module_idx < num_matching_modules; ++module_idx)
             {
                 module_sp = matching_module_list.GetModuleAtIndex(module_idx);
+                // If we had a UUID and we found a match, then that is good enough for a match
+                if (uuid_ptr)
+                    break;
                 if (module_file_spec)
                 {
                     // If we didn't have a UUID in mind when looking for the object file,





More information about the lldb-commits mailing list