[U-Boot-Users] Debugging U-Boot Under DDD

Talib Alim talibalm at hotmail.com
Tue Jul 13 02:18:16 CEST 2004


I am using eldk

[root at lab1 eldk]# cat version 
ELDK version 3.0
ppc_8xx: Build 2004-02-16

I am starting ddd with following command line

ddd --debugger /opt/eldk/usr/bin/ppc_8xx-gdb
target remote bdi:2001
symbol u-boot
set $pc = 0x02000100 # my flash is mapped @ 0x02000000
I am using bin {& not elf}, apart from this problem, it seems to be
doing fine.

TA

--- Wolfgang Denk <wd at denx.de> wrote:
> In message <20040712194303.3117.qmail at web50504.mail.yahoo.com> you
> wrote:
> > 
> > At this point if I "Cont", I get pop-up from ddd
> > /.../u-boot-1.1.1/serial.c: No such file or directory.
> 
> Sounds like a toolchain or user problem to me.
> 
> > Just before relocating the code, I typed following statements
> > 
> > (gdb) symbol-file
> > (gdb) add-symbol-file u-boot 0xbda000
> 
> How did you start gdb / DDD? Did you really load "u-boot" (i. e. 
> the
> ELF file)?
> 
> > (gdb) dir cpu/mpc8xx
> > (gdb) dir board/fads
> > (gdb) dir tools/gdb/serial.c
> > (gdb) dir drivers/serial.c
> 
> None of these should be necessary. Which toolchain are you using?
> 
> 
> Best regards,
> 
> Wolfgang Denk
> 
> -- 
> Software Engineering:  Embedded and Realtime Systems,  Embedded
> Linux
> Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email:
> wd at denx.de
> Old programmers never die, they just become managers.
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 





More information about the U-Boot mailing list