commit | b193bbdec7a731fe422424cdea0e178bfee90adb | [log] [tgz] |
---|---|---|
author | GeorgeHuyubo <113479859+GeorgeHuyubo@users.noreply.github.com> | Tue Jan 07 10:31:18 2025 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Jan 07 10:36:41 2025 -0800 |
tree | a28ac7e667c94caf0b657a340197d367749b9492 | |
parent | 9d1d54f3e30fa6cd2176f56b02857660f12c75bf [diff] |
[lldb] Correct address calculation for reading segment data (#120655) This commit addresses a bug introduced in commit bcf654c, which prevented LLDB from parsing the GNU build ID for the main executable from a core file. The fix finds the `p_vaddr` of the first `PT_LOAD` segment as the `base_addr` and subtract this `base_addr` from the virtual address being read. Co-authored-by: George Hu <hyubo@meta.com> GitOrigin-RevId: a15fedc399d5d1aa07c14531e5cd8d3efc583600