[U-Boot-Users] Using the abatron to debug an image in flash

Detlev Zundel dzu at denx.de
Thu Aug 7 13:45:08 CEST 2003

Hi Mark,


> As you can see the code appears to jump around aimlessly, though the
> program still appears to run ok. Just to finish off I am able to
> configure the ram such that I can debug the application in ram up to
> the point where relocation occurs so I am fairly confident in my
> SDRAM setup.

If the "random jumping" is your only problem, then you don't really
have a problem.  The behaviour is due to the fact the gcc has
reordered the assembler instructions to better fit the PowerPC
architecture which means that the assembler instruction sequence
_does not_ correspond 1:1 to the source lines.

If this is the problem in your case, you can try disabling all code
optimizations (-O0) for your debugging sessions.  If I am not
mistaken, this should enforce a 1:1 correspondence from source to
assembler instructions.


PUBLIC NOTICE AS REQUIRED BY LAW:    Any Use of  This Product,  in Any Manner
Whatsoever, Will Increase the Amount of Disorder in the Universe. Although No
Liability Is  Implied Herein,  the Consumer Is Warned  That This Process Will
Ultimately Lead to the Heat Death of the Universe.

More information about the U-Boot mailing list