mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-14 05:50:51 +00:00
233c8bfce1
* For non-PIE executables /proc/self/maps contains a segment that starts at e.g. 0x00400000, which is fine, but the offset listed is 00000000 which is not. * We need to pass absolute addresses to addr2line, so using dl_iterate_phdr to iterate ourselves allows us to specify that the offset is 00400000. * For simplicity and backwards compatibility, we generate the same format as /proc/self/maps complete with dummy fields that we don't need. In future this could be a more compact representation.