[Lldb-commits] [lldb] [lldb] Fix ELF core debugging (PR #117070)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 20 15:34:10 PST 2024
================
@@ -1034,7 +1041,8 @@ UUID ProcessElfCore::FindBuidIdInCoreMemory(lldb::addr_t address) {
std::vector<uint8_t> note_bytes;
note_bytes.resize(program_header.p_memsz);
- byte_read = ReadMemory(program_header.p_vaddr, note_bytes.data(),
+ const lldb::addr_t program_header_vaddr = program_header.p_vaddr + address;
+ byte_read = ReadMemory(program_header_vaddr, note_bytes.data(),
----------------
clayborg wrote:
This fix is being tracked by https://github.com/llvm/llvm-project/pull/117028. Remove and make this dependent on that PR
https://github.com/llvm/llvm-project/pull/117070
More information about the lldb-commits
mailing list