exceptions: gross hideous hack works, need guru to tell me if I have caused major breakage
Jeff Sturm
jsturm@one-point.com
Sat Dec 15 08:57:00 GMT 2001
On 2001年12月15日, Andrew Haley wrote:
> This logic has been moved from Java's own signal handler to
> MD_FALLBACK_FRAME_STATE_FOR in the various gcc back ends. There are
> versions for x86, ppc, Alpha and recently IA-64.
On GNU/Linux, that is.
> > 3) What I've done works, but yields invalid stack traces (which don't
> > work on Win32 anyways due to SJLJ, so it's all moot).
>> Well, that's a shame, but only to be expected.
Hmm? I don't follow... getting a stack trace has nothing to do with the
unwinder. On x86 it is straightforward. The last frame pointer
is always stored at (%ebp) and the return IP at 4(%ebp). (I don't know if
you can step through a win32 exception handler frame this way, but
alternatively you could take the faulting eip/ebp and walk the stack from
there.)
Jeff
More information about the Java
mailing list