This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unix Signals as OS Exceptions in C++


[not completely related]

Ian Lance Taylor wrote:
It already works fine; just call throw from your signal handler.  This
programs works as expected on i386 GNU/Linux if you type ^C during the
sleep.

On my machines the exception is regularly thrown in the signal handler, but it can't be caught by catch, not even by catch(...); the program aborts. This happens on all my machines (GNU/Linux PowerPC and x86), with all the GCC versions I have installed (from 2.95 to 3.4.2).
No twiddling helped, as far as I tried.


This seems a bug. Should I file a PR? Is it only me to see that?

--
Luca Saiu, maintainer of GNU epsilon
http://www.gnu.org/software/epsilon


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]