From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26272 invoked by alias); 28 Jun 2004 14:25:34 -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 26199 invoked from network); 28 Jun 2004 14:25:32 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 28 Jun 2004 14:25:32 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i5SEPWe3010764 for ; Mon, 28 Jun 2004 10:25:32 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i5SEPU014301; Mon, 28 Jun 2004 10:25:30 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id EF6832B9D; Mon, 28 Jun 2004 10:25:26 -0400 (EDT) Message-ID: <40E02A56.1040306@gnu.org> Date: Mon, 28 Jun 2004 14:25:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Mark Kettenis Cc: ian@wasabisystems.com, 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> <200406271715.i5RHFARS007952@elgar.kettenis.dyndns.org> In-Reply-To: <200406271715.i5RHFARS007952@elgar.kettenis.dyndns.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-06/txt/msg00635.txt.bz2 > From: Ian Lance Taylor > Date: 27 Jun 2004 11:06:19 -0400 > > 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? > > 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