From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22503 invoked by alias); 8 Dec 2004 03:27:32 -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 22485 invoked from network); 8 Dec 2004 03:27:28 -0000 Received: from unknown (HELO arwen.tausq.org) (64.81.244.109) by sourceware.org with SMTP; 8 Dec 2004 03:27:28 -0000 Received: by arwen.tausq.org (Postfix, from userid 1000) id 3D0CA6BE3C; Tue, 7 Dec 2004 19:27:25 -0800 (PST) Date: Wed, 08 Dec 2004 04:33:00 -0000 From: Randolph Chung To: Mark Kettenis Cc: brobecker@adacore.com, gdb-patches@sources.redhat.com Subject: Re: [RFC/RFA/hppa] unwind pc in bottom frame using correct register Message-ID: <20041208032725.GI6359@tausq.org> Reply-To: Randolph Chung References: <20041204042049.GR16491@adacore.com> <20041204053132.GR6359@tausq.org> <20041204075101.GS16491@adacore.com> <20041204084624.GS6359@tausq.org> <200412041126.iB4BQsd8000662@elgar.sibelius.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200412041126.iB4BQsd8000662@elgar.sibelius.xs4all.nl> X-GPG: for GPG key, see http://www.tausq.org/gpg.txt User-Agent: Mutt/1.5.6+20040722i X-SW-Source: 2004-12/txt/msg00228.txt.bz2 > Anyway, the problems Joel sees can be fixed by explicitly setting > "flags" to zero in all unwound frames. This somehow seems the correct > approach since this "flags" register is only meaningful in the > sentinel frame. This is implemented by the attached patch (wich will > no longer apply after Randolph's recent change, but you get the idea). hrm, something is broken. on hppa64-hp-hpux11.11 this is causing a lot of unwinding failures. the hpux unwind_pc method is getting flags that have the magic "2" bit set, so it gets the pc from 31 instead of the pcoqh register. i don't quite yet understand why this is happening. if i do "print $flags" on frame #0 the value seems reasonable. randolph -- Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/