[Lldb-commits] [PATCH] D28804: Provide a substitute to load command of gdb

Hafiz Abid Qadeer via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 17 06:24:46 PST 2017


abidh created this revision.

For bare-metal targets, lldb was missing a command like 'load' in gdb which can be used to create executable image on the target.  This was discussed in
http://lists.llvm.org/pipermail/lldb-dev/2016-December/011752.html

This diff adds an option to "target module load" command to provide that functionality. Instead of delegating the responsibility of writing bits to memory to Module or Objfile as was discussed in the thread above, it seemed simple to do it right in the command. Otherwise it looks straight forward. I have added a little code so that this option can be used with specifying the file so that it is easy to alias this long command to something simple. I was not sure what should be the name of that option. So I am open to suggestion.

Tested with qemu and STM32L476 board and works ok. Although it needs a few more changes else where in lldb to make them work. Those changes will come in separate commits.


https://reviews.llvm.org/D28804

Files:
  source/Commands/CommandObjectTarget.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28804.84665.patch
Type: text/x-patch
Size: 5294 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170117/961f801d/attachment-0001.bin>


More information about the lldb-commits mailing list