summaryrefslogtreecommitdiff
path: root/lldb/source/Core/DynamicLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Core/DynamicLoader.cpp')
-rw-r--r--lldb/source/Core/DynamicLoader.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lldb/source/Core/DynamicLoader.cpp b/lldb/source/Core/DynamicLoader.cpp
index 3c6c6bd36570..acc84dbf016f 100644
--- a/lldb/source/Core/DynamicLoader.cpp
+++ b/lldb/source/Core/DynamicLoader.cpp
@@ -157,11 +157,9 @@ DynamicLoader::GetSectionListFromModule(const ModuleSP module) const {
ModuleSP DynamicLoader::FindModuleViaTarget(const FileSpec &file) {
Target &target = m_process->GetTarget();
ModuleSpec module_spec(file, target.GetArchitecture());
- ModuleSpec module_spec_from_process;
- // Process may be able to augment the module_spec with UUID, e.g. ELF core.
- if (m_process->GetModuleSpec(file, target.GetArchitecture(),
- module_spec_from_process)) {
- module_spec = module_spec_from_process;
+ if (UUID uuid = m_process->FindModuleUUID(file.GetPath())) {
+ // Process may be able to augment the module_spec with UUID, e.g. ELF core.
+ module_spec.GetUUID() = uuid;
}
if (ModuleSP module_sp = target.GetImages().FindFirstModule(module_spec))