translating synchronous signals into exceptions

Andrew Haley aph@redhat.com
Fri Dec 3 13:08:00 GMT 2004


Benjamin Collar writes:
 > Greetings everyone,
 > 
 > I'm working on a project with customers who come from a Windows
 > background, are not comfortable with signal-handling in C++ and would
 > prefer to throw exceptions from signal-handlers. 
 > 
 > I saw a message on the GCC mailing list
 > http://gcc.gnu.org/ml/gcc/2004-09/msg00725.html , where it's explained
 > explained how it could be accomplished for synchronous signals. This is
 > exactly what they are looking for. The difficulty I have at the moment
 > is that they are using the AMD 64 platform. Looking at the header
 > libjava/include/x86_64-signal.h, I see that SEGV is handled but, unlike
 > i386, FPE is not.
 > 
 > Can someone explain why FPE is not handled? Is there a plan for handling
 > FPE in the near future?
We just need to write the code. It's not particularly difficult, but
it's quite tricky to test all the cases. You see the
HANDLE_DIVIDE_OVERFLOW is quite hairy in the i386 case. It might well
work with little change.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /