On 03/26/13 17:48, Duane Voth wrote:
> At this point I'd like to use gdb to poke around but probably need some
> symbols. Andrei Warkentin's blog
> here
> http://osdevnotes.blogspot.com/2011/05/gdb-scripting-example-reloading-symbols.html
> looks helpful but his source
> (https://github.com/andreiw/andreiw-wip/tree/master/uefi/DebugPkg) is
> out of date... I'm getting:
>
> build.py...
> /home/duanev/efi/edk2/AppPkg/AppPkg.dsc(...): error 4000: Instance of
> library class [DxeServicesTableLib] is not found
> in
> [/home/duanev/efi/edk2/AppPkg/Applications/GdbSyms/GdbSyms.inf] [X64]
> consumed by module
> [/home/duanev/efi/edk2/AppPkg/Applications/GdbSyms/GdbSyms.inf]
>
> when I drop his GdbSyms into AppPkg. I don't understand the build
> environment yet - AppPkg/Applications/Sockets/WebServer also
> uses DxeServicesTableLib but compiles fine and I can't find any
> differences between the .inf files that might cause this. :P
The DxeServicesTableLib library class name must be mapped to a library
instance. The reason why it works for WebServer is this:
AppPkg/AppPkg.dsc:
- !include AppPkg/Applications/Sockets/Sockets.inc
AppPkg/Applications/Sockets/Sockets.inc:
- for the "AppPkg/Applications/Sockets/WebServer/WebServer.inf"
component only, there's
<LibraryClasses>
...
DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
...
<LibraryClasses>
You need to resolve the "DxeServicesTableLib" library class name to the
"MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf" library
instance the same way for GdbSyms as well. Adding it directly to
AppPkg/AppPkg.dsc/[LibraryClasses] could be easiest.
See also the DSC specification under
<http://sourceforge.net/projects/edk2/files/Specifications/>, "2.7
[LibraryClasses] Section Processing".
Laszlo
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel