From: Ho Lee Date: Tue, 25 May 2004 11:49:00 -0700 Subject: [U-Boot-Users] debugging relocated code References: <001601c44286$0328e880$2900a8c0@foundation> Message-ID: <01c501c44288$f1b25c00$1502a8c0@corp.skystream.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Message Hi Stuart, Try the 'add-symbol-file' command. It relocates symbols to specified address. In your case, you can relocate symbols by following commands. gdb> add-symbol-file u-boot 0x0ff03000 gdb> file u-boot You may find more information in gdb manual. Sincerely, Ho ----- Original Message ----- From: Stuart Yoder To: u-boot-users at lists.sourceforge.net Sent: Tuesday, May 25, 2004 11:27 AM 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