[Lldb-commits] [PATCH] D42145: [lldb] Use vFlash commands when writing to target's flash memory regions
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 27 17:53:17 PST 2018
labath added inline comments.
================
Comment at: lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp:814
value = value - header->p_vaddr;
found_offset = true;
----------------
Ok so the issue is that here we use the virtual address to compute the load bias, but at line 830 we add the bias to the physical address. This breaks as soon as these two addresses start to differ.
Changing this to use the physical address as well fixes things, but as I said before, I'm not sure we should be using physical addresses here.
Repository:
rL LLVM
https://reviews.llvm.org/D42145
More information about the lldb-commits
mailing list