Re: Throwing from a signal handler

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

 



* Andrew Haley:

> 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.

How does this affect code generation?

> Be aware that only synchronous exceptions are supported, so that's
> things like segfaults and divide by zero.

Oh.  But it's probably to be expected.

[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