================
@@ -157,6 +157,10 @@ DynamicLoader::GetSectionListFromModule(const ModuleSP
module) const {
ModuleSP DynamicLoader::FindModuleViaTarget(const FileSpec &file) {
Target &target = m_process->GetTarget();
ModuleSpec module_spec(file, target.GetArchitecture());
+ if (UUID uuid = m_process->FindBuildId(file.GetPath())) {
+ // Process may have the UUID for the module, e.g. ELF core.
+ module_spec.GetUUID().SetFromStringRef(uuid.GetAsString());
----------------
clayborg wrote:
Use `Process::GetModuleSpec`:
```
ModuleSpec module_spec(file, target.GetArchitecture());
// Process may be able to augment the module_spec with UUID, e.g. ELF core.
m_process->GetModuleSpec(file, target.GetArchitecture(), module_spec);
```
https://github.com/llvm/llvm-project/pull/117070
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits