On 04/21/13 21:19, Jordan Justen wrote:
> On Sun, Apr 21, 2013 at 12:05 PM, Laszlo Ersek <ler...@redhat.com> wrote:
>> On 04/21/13 19:32, Joe Vernaci wrote:
>>> What would this get you that just using the qemu built-in gdbserver doesn't?
>>
>> I tried this because it seems to be the official way with -D
>> SOURCE_DEBUG_ENABLE. I suppose the DebugAgent built into the firmware
>> could have more "insight" about the firmware's state.
> 
> My personal opinion is that the SOURCE_DEBUG_ENABLE/UDK Debugger tools
> are too difficult to setup. (Your experience trying to use it seems to
> back that up. :)

I wouldn't mind the complex setup if afterwards I could use them
reliably. (... Truth to be told, I'm not actually interested in symbolic
debugging here -- I'm OK with the DEBUG macros --, I'm just curious if /
how it could work.)

> 
> It would be nice if we could get gdb working as well as it does for
> EmulatorPkg by utilizing some gdb scripting (to find images after a
> breakpoint). Given the qemu gdb support, it seems like OVMF has an
> opportunity to make things work as well as EmulatorPkg.

The scripts packaged with the UDK gdb server implement a gdb extension
called "loadall" ("Loads symbols for all loaded modules.").
Unfortunately the main script (that installs the extension) refuses to
run if the remote is not the UDK gdb server.

Edk2LoadAll::invoke() seems to retrieve a list of all modules from the
UDK gdb server, and to call Edk2LoadImageAt::loadsymbol() / massage
various sections for each module. The frontend-side logic could be
extracted from the script I assume, but it doesn't seem trivial. Perhaps
Duane wants to give it a shot? ;)

Laszlo

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to