This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [Patch] x % 0 hangs
Andrew Cagney <cagney@gnu.org> writes:
> > The only approach that's somewhat
> > portable is longjmp-ing out of the signal handler, and even that seems
> > to have its problems on some platforms.
>
> I'm curious, which platforms?
I would think that it would be safe enough to longjmp on SIGFPE into
the gdb catch_errors stack. You would obviously be in trouble if the
SIGFPE came from any libc stdio routine, but I would expect that to be
impossible with a working library.
Ian