This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with _Unwind_Backtrace() vs signal handlers
- From: Geoffrey Keating <geoffk at geoffk dot org>
- To: Bryce McKinlay <mckinlay at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 31 Jul 2004 22:58:46 -0700
- Subject: Re: Problems with _Unwind_Backtrace() vs signal handlers
- References: <410C33B6.1030903@redhat.com>
Bryce McKinlay <mckinlay@redhat.com> writes:
> For a normal call, the IP returned by _Unwind_GetIP() is the return
> address for the frame above it - that is, the instruction following
> the "call" instruction. When unwinding through a signal handler,
> however, _Unwind_GetIP() returns a pointer to the faulting
> instruction.
Sounds like a bug in MD_FALLBACK_FRAME_STATE_FOR on your platform.
I'd suggest looking at the powerpc-darwin implementation for
an indication of how to get this right.