From: Talib Alim Date: Mon, 12 Jul 2004 12:43:03 -0700 (PDT) Subject: [U-Boot-Users] Debugging U-Boot Under DDD In-Reply-To: <20040712191803.DD7B1C109F@atlas.denx.de> Message-ID: <20040712194303.3117.qmail@web50504.mail.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 wrote: > In message <20040712190824.57774.qmail@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