public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Vladimir Gurevich <vag@paulidav.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Debugging U-boot after relocation
Date: Wed, 05 Feb 2003 17:16:28 -0800	[thread overview]
Message-ID: <3E41B76C.8060207@paulidav.org> (raw)

Hello,

I am trying to debug U-boot after the code has been relocated and
I got some problems. Maybe I don't know gdb well enough...
BTW, I use ELDK tools and BDI-2000 on PPC405GP-based board.

I can debug U-boot before the relocation step easily. So I
put a breakpoint at the "blr" instruction that preceeds the
"in_ram" label. After it occurs, I issue the following gdb
commands:

(gdb) info line *(&in_ram)
Line 1310 of "/home/vgurevic/vag/u-boot-0.2.0/cpu/ppc4xx/start.S"
starts at address 0xfffc25a8 <in_ram> and ends at 0xfffc25ac <in_ram+4>.
(gdb) file

(gdb) add-symbol-file u-boot 0x7fd0000  <- That's the reloc. addr
(gdb) target remote bdi:2001

(gdb) info line *(&in_ram)
Line 510 of "/home/vgurevic/vag/u-boot-0.2.0/cpu/ppc4xx/start.S"
starts@address 0x7fd26e8 <ext_bus_cntlr_init> and ends at 0xfffc0100.
                                                             ^^^^^^^^^^^

So that's where the isue is: gdb can't interpret line numbers
correctly anymore and can't show (via ddd or emacs interface)
where you are. It is still possible to step through the code
using "stepi" but not much more.

Does anyone know how to deal with this issue or maybe there is
a totally different way to debug U-boot?

Thanks,
Vladimir

             reply	other threads:[~2003-02-06  1:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-06  1:16 Vladimir Gurevich [this message]
2003-02-06  7:10 ` [U-Boot-Users] Debugging U-boot after relocation Wolfgang Denk
2003-02-07  1:01   ` Vladimir Gurevich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E41B76C.8060207@paulidav.org \
    --to=vag@paulidav.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox