All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Debugging u-boot
Date: Thu, 11 Mar 2010 16:41:51 +0100	[thread overview]
Message-ID: <20100311154151.B6D4BE22AD1@gemini.denx.de> (raw)
In-Reply-To: <3F466DDF09A55D46858FC39B22DE56F23A30259045@pat.prediktor.no>

Dear =?iso-8859-1?Q?Bj=F8rnar_Syverstad?=,

In message <3F466DDF09A55D46858FC39B22DE56F23A30259045@pat.prediktor.no> you wrote:
>
> I am trying to debug the u-boot with help of gdb + eclipse. Useing the phy3250_config.
>
> The problem is that when debugging, the listed source code seems to be out of sync.
> The debugger pointer in the source code, seems not to point to the correct source code.

Did you read the manual, for example here:
http://www.denx.de/wiki/view/DULG/DebuggingTricks

> The assembler windows shows typical this:
>
> <source line is not available>
...
> It does miss the code in "<source line is not available>"

So what? Eventually the compiler optimized this code away, of shifted
it to some other place where you don;t expect it.

> I did look at u-boot.lds and did not find any debug sections.

The linker script has little to do with that.

> Is there something parameters to make to add more debug information?

I don't think that this is your problem.

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
Motto of the Electrical Engineer: Working computer hardware is a  lot
like an erect penis: it stays up as long as you don't fuck with it.

  reply	other threads:[~2010-03-11 15:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-11 14:48 [U-Boot] Debugging u-boot Bjørnar Syverstad
2010-03-11 15:41 ` Wolfgang Denk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-08-30 11:59 Mirko Banchi
2011-08-30 12:09 ` Stefano Babic
2011-08-30 12:14   ` Mirko Banchi
2011-08-30 12:55 ` Wolfgang Denk
2011-08-30 13:59   ` Mirko Banchi
2011-08-30 14:13     ` Wolfgang Denk
2014-10-07  6:30 Kantanu Kumar Mohapatra

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=20100311154151.B6D4BE22AD1@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 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.