EGCS vs MSVC - exception handling
Mike Stump
mrs@wrs.com
Thu Jan 15 16:13:00 GMT 1998
> To: egcs@cygnus.com
> From: Arun Sharma <asharma@netscape.com>
> Date: 12 Jan 1998 23:39:56 -0800
> Why would that be necessary ? Inside the signal handler, I know
> precisely which instruction generated the trap by looking into the
> sigcontext.
Bingo, that's it. Unfortunately, one needs to look at the current PC
and only when the top of the stack is hit (the original signal handler
frame), then switch over to the sigcontext. gcc hasn't been taught
about this yet.
You can get it to work, by using -fsjlj-exceptions.
More information about the Gcc
mailing list