From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16679 invoked by alias); 31 May 2003 16:55: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 16620 invoked from network); 31 May 2003 16:55:27 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.166.107) by sources.redhat.com with SMTP; 31 May 2003 16:55:27 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4989E2B2F; Sat, 31 May 2003 12:55:19 -0400 (EDT) Message-ID: <3ED8DE77.4070801@redhat.com> Date: Sat, 31 May 2003 16:55:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mark Kettenis Cc: mludvig@suse.cz, gdb-patches@sources.redhat.com Subject: Re: [RFC/i386newframe] Restore all registers from sigframe References: <3ED6050F.9010908@suse.cz> <200305311601.h4VG1dVQ000356@elgar.kettenis.dyndns.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg00592.txt.bz2 > Date: Thu, 29 May 2003 15:03:11 +0200 > From: Michal Ludvig > > Hi, > > the attachd patch enables restoration of all registers when unwinding > from a signal handler. Currenty only PC and SP were restored and it's a > loss since all GPRs are there on the stack. > It's even more important for AMD64 because there parameters are usually > passed in regs and not on the stack. > > Indeed. We defenitely need %ebp too to reliably unwind on the i386. > Might just as well go all the way. The other registers are usefull > for local variables stored in registers too. Floating-point registers > are a bit tricky though. It's fine to leave them out for now though. Ya! At least two people now get it! A frame should unwind anything. Andrew