forked from OSchip/llvm-project
16064d354a
The difference between this and the previous patch is that now we use ELF physical addresses only for loading objects into the target (and the rest of the module load address logic still uses virtual addresses). Summary: When writing an object file over gdb-remote, use the vFlashErase, vFlashWrite, and vFlashDone commands if the write address is in a flash memory region. A bare metal target may have this kind of setup. - Update ObjectFileELF to set load addresses using physical addresses. A typical case may be a data section with a physical address in ROM and a virtual address in RAM, which should be loaded to the ROM address. - Add support for querying the target's qXfer:memory-map, which contains information about flash memory regions, leveraging MemoryRegionInfo data structures with minor modifications - Update ProcessGDBRemote to use vFlash commands in DoWriteMemory when the target address is in a flash region Original discussion at http://lists.llvm.org/pipermail/lldb-dev/2018-January/013093.html Reviewers: clayborg, labath Reviewed By: labath Subscribers: llvm-commits, arichardson, emaste, mgorny, lldb-commits Differential Revision: https://reviews.llvm.org/D42145 Patch by Owen Shaw <llvm@owenpshaw.net>. llvm-svn: 327970 |
||
---|---|---|
.. | ||
Address.cpp | ||
AddressRange.cpp | ||
AddressResolver.cpp | ||
AddressResolverFileLine.cpp | ||
AddressResolverName.cpp | ||
Broadcaster.cpp | ||
CMakeLists.txt | ||
Communication.cpp | ||
Debugger.cpp | ||
Disassembler.cpp | ||
DumpDataExtractor.cpp | ||
DynamicLoader.cpp | ||
EmulateInstruction.cpp | ||
Event.cpp | ||
FileLineResolver.cpp | ||
FileSpecList.cpp | ||
FormatEntity.cpp | ||
IOHandler.cpp | ||
Listener.cpp | ||
Mangled.cpp | ||
Module.cpp | ||
ModuleChild.cpp | ||
ModuleList.cpp | ||
Opcode.cpp | ||
PluginManager.cpp | ||
RegisterValue.cpp | ||
Scalar.cpp | ||
SearchFilter.cpp | ||
Section.cpp | ||
SourceManager.cpp | ||
State.cpp | ||
StreamAsynchronousIO.cpp | ||
StreamFile.cpp | ||
UserSettingsController.cpp | ||
Value.cpp | ||
ValueObject.cpp | ||
ValueObjectCast.cpp | ||
ValueObjectChild.cpp | ||
ValueObjectConstResult.cpp | ||
ValueObjectConstResultCast.cpp | ||
ValueObjectConstResultChild.cpp | ||
ValueObjectConstResultImpl.cpp | ||
ValueObjectDynamicValue.cpp | ||
ValueObjectList.cpp | ||
ValueObjectMemory.cpp | ||
ValueObjectRegister.cpp | ||
ValueObjectSyntheticFilter.cpp | ||
ValueObjectVariable.cpp |