From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Sharma To: egcs@cygnus.com Cc: egcs@cygnus.com Subject: Re: EGCS vs MSVC - exception handling Date: Mon, 12 Jan 1998 10:18:00 -0000 Message-id: References: <34bbf4a0.7558458@nntp.demos.su> <34bf0215.11003532@nntp.demos.su> X-SW-Source: 1998-01/msg00310.html The following message is a courtesy copy of an article that has been posted to comp.os.linux.development.apps as well. Paul Flinders 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.