[U-Boot-Users] debugging relocated code
Kerl, John
John.Kerl at Avnet.com
Tue May 25 20:58:17 CEST 2004
Herm, could you use ppc-linux-objcopy with --adjust-vma, then point GDB at that modified executable?
-----Original Message-----
From: u-boot-users-admin at lists.sourceforge.net [mailto:u-boot-users-admin at lists.sourceforge.net]On Behalf Of Stuart Yoder
Sent: Tuesday, May 25, 2004 11:28 AM
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] debugging relocated code
What is typically done to debug relocated code with gdb? For example, u-boot is linked at 0xFFF0000, but then relocates itself to 0x0FF03000. The debug symbols all reference the linked location. After the relocation occurs gdb is lost as far as symbolic information goes.
Am I supposed to link the code to the place I know it will end up after relocation?
Anyone know of a way in gdb to relocate all the symbols?
Thanks,
Stuart Yoder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20040525/2af460aa/attachment.htm
More information about the U-Boot
mailing list