From 9ff1ba2546efc87d469ecdcf17f4bd4a4dbbb2cc Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 20 Mar 2012 01:31:19 +0000 Subject: [PATCH] Make sure that if a UUID was passed in, and we found a match, that should be enough for us. llvm-svn: 153076 --- lldb/source/Core/ModuleList.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lldb/source/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp index 89021f12dd1b..1055e21d412b 100644 --- a/lldb/source/Core/ModuleList.cpp +++ b/lldb/source/Core/ModuleList.cpp @@ -613,6 +613,9 @@ ModuleList::GetSharedModule 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,