This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: How GCC handle exceptions under Linux?


On Tue, Dec 11, 2012 at 10:25 AM, Borneq <borucki.andrzej@gmail.com> wrote:
> Jonathan Wakely-4 wrote
>
> <quote&quot;>
> No. Hardware exceptions and signals are not mapped to C++ exceptions.
> C++ exceptions are designed for error handling, not for handling
> asynchronous events like signals.
>
> Is impossible to write safe code handling hardware exceptions by try..catch?

On GNU/Linux and Solaris and possibly other systems, you can write a
signal handler that uses throw.

Ian


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