[coldfire-gnu-discuss] zero divide trap when running Debug Sprite Example "Fibo"
Nathan Sidwell
nathan at codesourcery.com
Tue Jul 8 12:27:45 UTC 2008
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
More information about the coldfire-gnu-discuss
mailing list