RE: [U-Boot-Users] debugging relocated code

Herm, could you use ppc-linux-objcopy with --adjust-vma, then point GDB at that modified executable?
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@lists.sourceforge.net]On Behalf Of Stuart Yoder Sent: Tuesday, May 25, 2004 11:28 AM To: u-boot-users@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

In message E8E581FE5C58614B85A22AF2A495C64909E38D@uschd00mx11usr.AVNET.COM you wrote:
Herm, could you use ppc-linux-objcopy with --adjust-vma, then point GDB = at that modified executable?
No, this will not do any good.
------_=_NextPart_001_01C4428A.3D5570E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Grrrrghhh....
If this continues like that, I will really try to find out how to configure the mailing list to reject all HTML messages.
Please DON'T send HTML!
Best regards,
Wolfgang Denk
participants (2)
-
Kerl, John
-
Wolfgang Denk