Re: Throwing from a signal handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Florian Weimer wrote:
> Under what circumstances is it possible to throw a C++ exception from
> a signal handler?  (I'm most interested in GNU/Linux with libc 2.7 and
> later.)

It depends on the architecture, but we have support on x86 and a bunch
of others.  Compile with -fnon-call-exceptions.  Be aware that only
synchronous exceptions are supported, so that's things like segfaults
and divide by zero.  It's up to you to make sure that the signal is
re-enabled.

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux