[lldb-dev] LLDB bare-metal and 'load' command

Greg Clayton via lldb-dev lldb-dev at lists.llvm.org
Fri Dec 16 13:48:34 PST 2016


> On Dec 16, 2016, at 9:00 AM, Abid, Hafiz <Hafiz_Abid at mentor.com> wrote:
> 
> Hi Greg,
> I was trying to do some bare-metal debugging with LLDB and an ARM board. I noticed that
> LLDB does not have a command similar to 'load' command of GDB. Searching the mailing list,
> it seems that this issue has been discussed before.
> 
> http://lists.llvm.org/pipermail/lldb-dev/2014-March/003476.html
> 
> Has any such command been added in LLDB since that discussion? If not, then I would like to
> take a stab at adding this command in LLDB proper. I was wondering where such command
> will make most sense. Should it be added to some existing group like 'process' or 'image' or
> be a stand-alone command?

No ELF specific loader has been written so I would go ahead and write one in python and check it into $(trunk)/examples/python as loadelf.py. I am not sure if you can add a python command as a child of an existing command, but you can call it "load-elf". There are a few open source ELF parsers in python, and I have one if you need it so that you don't have to write one from scratch.

If you need any help let me know.

Greg Clayton

> 
> Thanks,
> Abid



More information about the lldb-dev mailing list