From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Debugging u-boot with bdi3000 basics
Date: Thu, 27 May 2010 15:00:58 +0200 [thread overview]
Message-ID: <20100527130058.69FFBEAC238@gemini.denx.de> (raw)
In-Reply-To: <AANLkTinA8O1OtqI93hyazU2UDG4QbZzRkt3ql3iP9hCN@mail.gmail.com>
Dear Mark Fanara,
In message <AANLkTinA8O1OtqI93hyazU2UDG4QbZzRkt3ql3iP9hCN@mail.gmail.com> you wrote:
> As my target board is PowerPC based (and therefore skipping relocation
> is not possible), I need help with my previously enumerated questions.
>
> 1) In section 10.4, Tips and Tricks, it says "To prevent GDB from
> jumping around in the code when trying to single step, i. e. when it
> seems as if the code is not executing line by line, you can recompile
> your code with the following additional compiler options:
> "-fno-schedule-insns -fno-schedule-insns"
>
> In the u-boot developer world, what is the best practice for adding
> these compiler options? I see CFLAGS in config.mk and assume that is
> what needs to be modified. However, I need a HOWTODOITRIGHT
There is many ways to do this. You may or mayu not want to compile all
files with this option, so you may add it to the glocal CFLAGS, or
just locally in a subdirectory, or manually provide it on the command
line, or ....
Ther eis no single "right" way.
> 3) The function board_init_f() in board.c makes calls to debug(). I
> cannot determine how to enable debug() output. I saw one reference in
> the manual, but it gave no specifics.
You just "#define DEBUG" before the first #include in that file.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Men will always be men -- no matter where they are.
-- Harry Mudd, "Mudd's Women", stardate 1329.8
prev parent reply other threads:[~2010-05-27 13:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-26 17:07 [U-Boot] Debugging u-boot with bdi3000 basics Mark Fanara
2010-05-27 5:15 ` Alan Carvalho de Assis
2010-05-27 6:56 ` Wolfgang Denk
2010-05-27 9:07 ` Alan Carvalho de Assis
2010-05-27 12:40 ` Mark Fanara
2010-05-27 13:00 ` Wolfgang Denk [this message]
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=20100527130058.69FFBEAC238@gemini.denx.de \
--to=wd@denx.de \
--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