EGCS vs MSVC - exception handling
Arun Sharma
asharma@nospam.netscape.com
Mon Jan 12 10:18:00 GMT 1998
The following message is a courtesy copy of an article
that has been posted to comp.os.linux.development.apps as well.
Paul Flinders <PaulFl@finobj.com> writes:
>
> void handle_segv()
> {
> Segv exception ;
>
> throw ( exception );
> }
>
> Should just about do it with the exception of unblocking signals (which
> you need to do as never exit the signal handler normally).
>
A throw from the signal handler results in a core dump. One needs to
do more work to get this to work. Someone on the egcs list might have
already done this.
-Arun
PS: The thread was about being able to catch null pointer exceptions
in egcs.
More information about the Gcc
mailing list