[uClibc] Exception in uClibc

Alexandre Oliva aoliva at redhat.com
Wed Mar 10 07:16:37 UTC 2004


On Mar  9, 2004, Federico Munerotto <mune at ieee.org> wrote:

>      int b = 10/a; // force divide by zero exception

It's not an exception in the C++ sense, it's just undefined behavior.
It won't throw an exception unless you install a signal handler and
arrange for the handler to throw the exception, and hope the EH
run-time gets unwinding from signal handlers right.

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}



More information about the uClibc mailing list