[Lldb-commits] [PATCH] D130534: loading a binary at a slide multiple times leaves old entries in the SectionLoadList

Jason Molenda via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 21 14:51:35 PDT 2022


jasonmolenda added a comment.

And to be clear, the problem is that we start out with an expression like `first[0]` which we find the Section + address for `first`, then resolve to a load address (addr_t) via the Target SectionLoadList, and then try to read memory from that address - at which point we go the other direction, converting the addr_t into a Section+offset via the Target SectionLoadList.  When we have the old section entries in SectionLoadList, we don't end up with the same Section+offset as we started on -- one of the old entries is picked up (if you slide it the right way - like the test does) and you read data from the wrong address in the file.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130534/new/

https://reviews.llvm.org/D130534



More information about the lldb-commits mailing list