This is for the gdb issue not the acpi issue:
I looked at his scripts. They work by loading up his stub/app which isn't
actually running on the target and using the symbols provided by this
binary to use gdb to find the system table pointer (located top of mem -
x*0x400000).
The error you are seeing means gdb does not have a type for
EFI_SYSTEM_TABLE so the file provided when you ran the command 'reload-uefi
/path/to/GdbSyms.dll' either was not there or did not have a symbol for
EFI_SYSTEM_TABLE. You can confirm this by running 'info types
EFI_SYSTEM_TABLE_POINTER' after you have run 'reload-uefi ...' It should
tell you there is nothing matching this type.
GenFw will strip any remaining symbols when generating the .efi file so you
have to point it to the .dll file.
His script like mine use the system table pointer which as I said above is
only valid after DxeMain.efi is loaded. After a quick grep it looks like
AcpiTimerLibConstructor is only called from Dxe files so this should be ok.
Also you can read the i/o ports from qemu's monitor is the 'i' command or
from gdb with the 'monitor i' command.
On Mon, Apr 8, 2013 at 11:22 PM, Duane Voth <[email protected]> wrote:
> Ok sorry to confuse things - yes I guess people pick up these threads
> midstream. The EFI_SYSTEM_TABLE_POINTER reference is separate from my
> ACPI issue. Andrei's code is here (
> https://github.com/andreiw/andreiw-wip/blob/master/uefi/DebugPkg/GdbSyms/GdbSyms.c);
> he defines a "stub" app/package to reference a handful of key EFI locations
> - then uses the symbol map produced by this app to drive loading of other
> symbols into gdb via a python script (which executes inside gdb!). His
> Python script is here:
> https://github.com/andreiw/andreiw-wip/blob/master/uefi/DebugPkg/Scripts/gdb_uefi.py
>
> I was hoping to use this to ease gdb+qemu+ovmf debugging as I didn't have
> any symbols...
>
>
>
> (main issue: acpi hardware timer isn't running in qemu so my ovmf builds
> all hang with a blank screen)
>
>
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>
>
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel