From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: 07 Aug 2003 13:45:08 +0200 Subject: [U-Boot-Users] Using the abatron to debug an image in flash In-Reply-To: <9901EE1E8F8BD3119109009027A1B5F596AE40@DIGINET2> References: <9901EE1E8F8BD3119109009027A1B5F596AE40@DIGINET2> Message-ID: <87vft9u1x7.fsf@deepthought.outer.space.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. Cheers Detlev -- 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.