[U-Boot] Debugging u-boot

Wolfgang Denk wd at denx.de
Thu Mar 11 16:41:51 CET 2010

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

In message <3F466DDF09A55D46858FC39B22DE56F23A30259045 at 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:

> 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.

More information about the U-Boot mailing list