From: Wolfgang Denk Date: Mon, 12 Jul 2004 21:17:58 +0200 Subject: [U-Boot-Users] Debugging U-Boot Under DDD In-Reply-To: Your message of "Mon, 12 Jul 2004 12:08:24 PDT." <20040712190824.57774.qmail@web50510.mail.yahoo.com> Message-ID: <20040712191803.DD7B1C109F@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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