From: Juan Antonio Garcia Redondo <juan-antonio.garcia@nabla-designs.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] u-boot debugging boot with gdb and bdi2000 in lubbock(PXA255) board
Date: Thu, 04 Sep 2003 17:46:16 +0200 [thread overview]
Message-ID: <3F575E48.1060507@nabla-designs.com> (raw)
In-Reply-To: 20030904141017.359B5C59E4@atlas.denx.de
Wolfgang Denk wrote:
>In message <E19utSW-0000xx-00@hall.mail.mindspring.net> you wrote:
>
>
>>I usually set TEXT_BASE=0 in board/lubbock/config.mk for debugging before
>>start_armboot. No need to reflash. You should be able to reload symbols in
>>gdb at offset 0, but for some reason I've never been able to get this to
>>work correctly. So linking at 0 sets symbols for gdb correctly. Then you can
>>use gdb in a normal manner.
>>
>>
>
>No need to recompile / relink. GDB will do the same when you use
>"symbol-file" to delte the current ymbol table and "add-symbol-file"
>to load the symbol file to the wanted target address (0x0).
>
>
Thanks Wolfgang and Kyle for your advice. Now, I can debug the boot
process from the first instruction. Finally I've created two binaries:
u-boot to execute and u-boot.debug (with TEXTBASE=0x0), to debug the
first part of boot process. When the boot process arrives to the
start_armboot function, I discard the current symbol file(u-boot.debug)
and load the new one(u-boot).
Now, I have a new (minor) problem. The execution order which shows the
gdb seems to be wrong (I`ve stopeed at the start_armboot funcion and the
lines which show the gdb are different of the real execution). I suppose
that it is a compiler optimization problem. Anyone knows which are the
suitable flags to use with the compiler to avoid this behaviour ?
Regards,
Juan Antonio
next prev parent reply other threads:[~2003-09-04 15:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-04 11:34 [U-Boot-Users] u-boot debugging boot with gdb and bdi2000 in lubbock(PXA255) board Juan Antonio Garcia Redondo
2003-09-04 12:23 ` Wolfgang Denk
2003-09-04 12:32 ` Kyle Harris
2003-09-04 14:10 ` Wolfgang Denk
2003-09-04 15:46 ` Juan Antonio Garcia Redondo [this message]
2003-09-04 16:07 ` Wolfgang Denk
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=3F575E48.1060507@nabla-designs.com \
--to=juan-antonio.garcia@nabla-designs.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.