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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits