On Oct 21, 2013, at 11:38 AM, Sharma Bhupesh-B45370 B45370@freescale.com wrote:
[Resending as I got a 'You must be subscribed to post messages to this mailing list' message from edk2 list]
Hi List,
I am new to UEFI and am trying to debug my UEFI ported code (from u-boot) on a ARMv7 based SoC. I am able to do some basic debugging of the ARM CPU init code using a DS-5 debugger attached to the board.
I see that the ported code crashes somewhere while making a transition from Sec to PI phase. However, I can only verify this by seeing instruction level disassembly. I cannot figure out a way to load the source code using the DS-5 debugger.
I am used to seeing ELF files which have the debug information and which can be loaded via the debugger. Using the 'file' command I cannot find any ELF file in the output directory 'Build/..'. The FV and FD files don't seem to be ELF files as well.
FD is short for Flash Device. So it is usually the layout of the ROM. You could have multiple ROMs, but the most common thing is to just have a single FD. FV is a Firmware Volume. Basically a simple Flash Filesystem that allows files, named by GUIDs to be discovered.
EFI is a collection of relocatable PE/COFF images, and in general an INF file (no for a library) in your project maps to a PE/COFF file getting generated.
It can vary by compiler, but it is common for the *.dll file to be the native image with the debug info. So that is the file you want to load symbols for.
There are various schemes on how to do this. Some platforms print out debug messages that map into the commands you need to load symbols. Some platforms have scripts that can load symbols.
Sorry I don't remember the latest recommendation on which scheme to use for your platform? Try looking at the *.Fv.map file as I think it has info about how to load symbols. You would need a script to convert this into some format the DS-5 understands.
Maybe the scripts in https://svn.code.sf.net/p/edk2/code/trunk/edk2/ArmPlatformPkg/Scripts/Ds5/ are what you are looking for?
Thanks,
Andrew Fish
Any pointers to which ELF file is generated while compiling a UEFI BoardPkg and how it can be loaded via the debugger.
Thanks for your help. Regards, Bhupesh
October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clk... _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel