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

Kazuki Sakamoto via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 22 12:04:17 PST 2024


================
@@ -286,6 +286,22 @@ void ProcessElfCore::UpdateBuildIdForNTFileEntries() {
   }
 }
 
+bool ProcessElfCore::GetModuleSpec(const FileSpec &module_file_spec,
+                                   const ArchSpec &arch,
+                                   ModuleSpec &module_spec) {
+  module_spec.Clear();
+  for (NT_FILE_Entry &entry : m_nt_file_entries) {
+    if (module_file_spec.GetPath() == entry.path) {
+      module_spec.GetFileSpec() = module_file_spec;
+      module_spec.GetArchitecture() = arch;
+      module_spec.GetUUID().SetFromStringRef(entry.uuid.GetAsString());
----------------
splhack wrote:

updated

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


More information about the lldb-commits mailing list