[U-Boot-Users] Debugging U-Boot Under DDD
VanBaren, Gerald (AGRE)
Gerald.VanBaren at smiths-aerospace.com
Mon Jul 12 21:21:43 CEST 2004
> -----Original Message-----
> From: u-boot-users-admin at lists.sourceforge.net
> [mailto:u-boot-users-admin at lists.sourceforge.net]On Behalf Of
> Talib Alim
> Sent: Monday, July 12, 2004 3:08 PM
> To: U-Boot List
> Subject: [U-Boot-Users] Debugging U-Boot Under DDD
>
>
> This may be a trivial question, but I hope that someone can answer me.
> I am bring up u-boot on 8xx.
>
> 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.
That is typically because the compiler optimizer has re-ordered your program. ddd is showing you which line is being executed and the machine code window shows sequential instructions, but those instructions are _not_ for sequential source lines.
gvb
******************************************
The information contained in, or attached to, this e-mail, may contain confidential information and is intended solely for the use of the individual or entity to whom they are addressed and may be subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.
******************************************
More information about the U-Boot
mailing list