[Lldb-commits] [lldb] [LLDB] Add FreeBSD kernel coredump matching check. (PR #80785)

via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 6 03:20:07 PST 2024


================
@@ -153,9 +153,10 @@ addr_t DynamicLoaderFreeBSDKernel::FindKernelAtLoadAddress(
 }
 
 // Read ELF header from memry and return
+template <typename Elf_Ehdr>
----------------
aokblast wrote:

The need is in here:
```c++
llvm::ELF::Elf64_Ehdr header;
    if (!ReadELFHeader(process, addr, header)) {
      *read_error = true;
      return UUID();
    }
```

In this case the header is Elf64 instead of Elf32. So I try to use generic to handle different version of Elf

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


More information about the lldb-commits mailing list