[U-Boot-Users] Debugging U-Boot Under DDD
Talib Alim
talibalm at hotmail.com
Mon Jul 12 21:43:03 CEST 2004
Thanks for the link.
I have debugged u-boot to a point, it has relocated code, setup
execptions / interrrupts etc and in main_loop().
At this point if I "Cont", I get pop-up from ddd
/.../u-boot-1.1.1/serial.c: No such file or directory.
There are 23 serial.c files in the tree. Those possibly relavent to me
are
./cpu/mpc8xx/serial.c
./tools/gdb/serial.c
./drivers/serial.c
Just before relocating the code, I typed following statements
(gdb) symbol-file
(gdb) add-symbol-file u-boot 0xbda000
(gdb) dir cpu/mpc8xx
(gdb) dir board/fads
(gdb) dir tools/gdb/serial.c
(gdb) dir drivers/serial.c
Well, my question is why I am getting "No such file or directory" from
ddd and how can I fix this problem.
Usman
--- Wolfgang Denk <wd at denx.de> wrote:
> In message <20040712190824.57774.qmail at web50510.mail.yahoo.com> you
> wrote:
> > This may be a trivial question, but I hope that someone can answer
> > me.
>
> It's not a trivial question, but a FAQ.
>
> > While doing source level debugging under ddd, whenever I do step,
> > stepi, next or nexti I see green instruction pointer jump all over
> > the code. e.g. it would go to first line, than third line, than 7
> > line. If I look at machine code window, it is running in normal
> > predictable way.
>
> See http://www.denx.de/twiki/bin/view/DULG/DebuggingTricks
>
> 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
> When it is incorrect, it is, at least *authoritatively* incorrect.
> - Hitchiker's Guide To The
> Galaxy
More information about the U-Boot
mailing list