From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30894 invoked by alias); 25 Mar 2004 15:53:41 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 30846 invoked from network); 25 Mar 2004 15:53:38 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 25 Mar 2004 15:53:38 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 5B75E2B99; Thu, 25 Mar 2004 10:53:39 -0500 (EST) Message-ID: <40630083.7020500@gnu.org> Date: Thu, 25 Mar 2004 19:59: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: gdb@sources.redhat.com Subject: Re: Stepping through signal trampolines References: <200403251333.i2PDXSq7006981@elgar.kettenis.dyndns.org> In-Reply-To: <200403251333.i2PDXSq7006981@elgar.kettenis.dyndns.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03/txt/msg00263.txt.bz2 > So there still seem to be some quirks with stepping through signal > trampolines. But before we decide what's the bug, I think we should > ask ourselves what the desired behaviour is. In my view: > > * "finish" from within a signal handler should make us return to the > signal trampoline. > > * "finish" from within a signal trampoline should make us return to > the point where the signal interruption occured. > > * "stepi" from within a signal handler should step through the signal > handler and back into the signal trampoline. > > * "stepi" from within a signal trampoline should step through the > signal trampoline until the sigreturn system call. * nexti in a sigtramp is like stepi What about disassemble? Disassemble the entire signal trampoline or the current instruction? (you now know where my testcases are going :-) Andrew