Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldfire-gnu-discuss] zero divide trap when running Debug Sprite Example "Fibo"


  • To: Christof Frey <Christof.Frey@xxxxxxxxxx>
  • Subject: Re: [coldfire-gnu-discuss] zero divide trap when running Debug Sprite Example "Fibo"
  • From: Nathan Sidwell <nathan@xxxxxxxxxxxxxxxx>
  • Date: Tue, 08 Jul 2008 13:27:45 +0100

Christof Frey wrote:
According to CFPRM the stack frame is two long word:
SSP -> 32 Bit control information
SSP + 0x4 -> program counter

So is the SSP pointing to 0xffffb4 below the frame of interest ?

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00000d3a in __cs3_isr_divide_by_zero ()
(gdb) x/8xw $sp
0xffffb4:       0x000009a0      0x000008de      0x00000000      0x00ffffcc
0xffffc4:       0x00000e20      0x00ffffe0      0x00ffffe0      0xfffffffe

This is an odd stack frame, as there appears to be no sign of the control information. The control information contains the original PSW and the exception information. I'm wondering if you did arrive here via an exception. The 0x9a0 and 0x8de look like they might be code addresses -- what is at those locations?

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery