[Lldb-commits] [lldb] [lldb] Fix ELF core debugging (PR #117070)

Sim Sun via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 20 14:19:12 PST 2024


================
@@ -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());
----------------
simpleton wrote:

maybe check the uuid.IsValid before set?

https://github.com/llvm/llvm-project/pull/117070


More information about the lldb-commits mailing list