From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9208 invoked by alias); 16 May 2008 18:48:39 -0000 Received: (qmail 9199 invoked by uid 22791); 16 May 2008 18:48:38 -0000 X-Spam-Check-By: sourceware.org Received: from qnxmail.qnx.com (HELO nimbus.ott.qnx.com) (209.226.137.76) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 16 May 2008 18:48:21 +0000 Received: from [10.42.100.129] (dhcp-100-129.ott.qnx.com [10.42.100.129]) by nimbus.ott.qnx.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id K6WT3S2S; Fri, 16 May 2008 14:48:19 -0400 Message-ID: <482DD704.70808@qnx.com> Date: Fri, 16 May 2008 18:48:00 -0000 From: Aleksandar Ristovski User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Mark Kettenis CC: gdb@sources.redhat.com Subject: Re: Stepping out of signal handler problem References: <200805161732.m4GHWcjU013412@brahms.sibelius.xs4all.nl> In-Reply-To: <200805161732.m4GHWcjU013412@brahms.sibelius.xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00135.txt.bz2 Mark Kettenis wrote: >> From: Aleksandar Ristovski >> Date: Fri, 16 May 2008 12:26:43 -0400 >> >> This makes question 2: Is the only way to implement this similar to >> linux-nat (scanning for sigreturn kernel call)? Is there anything >> 'cleaner'? > > The clean way of doing this is provide proper unwind info for the > signal trampoline. This shouldn't be too difficult if your signal > trampolines live in libc, and quite a bit harder if they are in the > kernel. > What is the preferred way: frame_unwind_append_sniffer or tramp_frame_prepend_unwinder?