From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12804 invoked by alias); 27 Jun 2004 15:06:29 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 12794 invoked from network); 27 Jun 2004 15:06:28 -0000 Received: from unknown (209.128.65.135) by sourceware.org with QMTP; 27 Jun 2004 15:06:28 -0000 Received: (qmail 26021 invoked by uid 10); 27 Jun 2004 15:06:28 -0000 Received: (qmail 26473 invoked by uid 500); 27 Jun 2004 15:06:19 -0000 From: Ian Lance Taylor To: Andrew Cagney Cc: Mark Kettenis , mec.gnu@mindspring.com, david@streamline-computing.com, gdb-patches@sources.redhat.com Subject: Re: [Patch] x % 0 hangs References: <20040626154420.265CD4B104@berman.michael-chastain.com> <200406262252.i5QMqJGP000626@elgar.kettenis.dyndns.org> <40DE0454.1020908@gnu.org> Date: Sun, 27 Jun 2004 15:06:00 -0000 In-Reply-To: <40DE0454.1020908@gnu.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-06/txt/msg00594.txt.bz2 Andrew Cagney 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