This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] x % 0 hangs


   From: Ian Lance Taylor <ian@wasabisystems.com>
   Date: 27 Jun 2004 11:06:19 -0400

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?


Over the years I've seen quite a few bug-reports about this failing to
work, but I can't remember exectly which platforms were affected.

We need start with a working assumption that GDB is being run on POSIX compliant systems and that implies a working sigsetjmp / siglongjmp. Only when someone comes forward with a problematic system should we worry about it (and possibly not even then).


(BTW, the other way to handle this is to implement a s/w emulation of the inferior's arithmetic, that would never throw a SIGFPE).

Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]