Skip to content

Commit 2542d34

Browse files
author
George Hu
committed
Bug fix in FindModuleUUID
1 parent cd826d6 commit 2542d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ void ProcessElfCore::UpdateBuildIdForNTFileEntries() {
289289
UUID ProcessElfCore::FindModuleUUID(const llvm::StringRef path) {
290290
// Returns the gnu uuid from matched NT_FILE entry
291291
for (NT_FILE_Entry &entry : m_nt_file_entries)
292-
if (path == entry.path)
292+
if (path == entry.path && entry.uuid.IsValid())
293293
return entry.uuid;
294294
return UUID();
295295
}

0 commit comments

Comments
 (0)