[U-Boot-Users] How To Use gdb w/ u-boot source tree

Wolfgang Denk wd at denx.de
Tue Dec 31 17:14:44 CET 2002


In message <EGEGIJHKDKJGAJMGIDPNAEJPCDAA.jwalden at digitalatlantic.com> you wrote:
> 
> I now have a BDI2000, and I am preparing to use it to debug the u-boot code
> that I
> have generated.
> 
> Is it best to simply dissasemble the resulting image, and to single step
> through
> by referring to what gdb shows, and what the dissassembled code shows?

What makes you think GDB would show something different from the code
you get from disassembling the same object files?

> Essentially, I am looking for the series of steps that I would go through to
> build u-boot, and load, and run it using DDD or some other IDE based
> debugger
> so I can see the source as I step through the code.

With the BDI's telnet interface: "reset", "ti", "ti", ...; with  GDB:
"target  remote  bdi:2001",  "detach",  "target remote bdi:2001", (*)
"si", "si", ...

(*) a "display/i $pc" might be useful here...

Best regards, and a Happy New Year!

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
Overflow on /dev/null, please empty the bit bucket.




More information about the U-Boot mailing list