[lldb-dev] LLDB bare-metal and 'load' command
Abid, Hafiz via lldb-dev
lldb-dev at lists.llvm.org
Fri Dec 16 14:29:16 PST 2016
-------- Original message --------
From: Greg Clayton <gclayton at apple.com>
Date: 16/12/2016 21:48 (GMT+00:00)
To: "Abid, Hafiz" <Hafiz_Abid at mentor.com>
Cc: lldb-dev at lists.llvm.org
Subject: Re: LLDB bare-metal and 'load' command
> 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.
Thanks for your comments. I was thinking of adding a normal command in C++ instead of python. Do you think that is not the right way to go about it?
Thanks,
Abid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20161216/915deb79/attachment.html>
More information about the lldb-dev
mailing list