From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19198 invoked by alias); 4 Dec 2004 08:46:48 -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 18841 invoked from network); 4 Dec 2004 08:46:28 -0000 Received: from unknown (HELO arwen.tausq.org) (64.81.244.109) by sourceware.org with SMTP; 4 Dec 2004 08:46:28 -0000 Received: by arwen.tausq.org (Postfix, from userid 1000) id BDC2B111F43; Sat, 4 Dec 2004 00:46:24 -0800 (PST) Date: Sat, 04 Dec 2004 10:53:00 -0000 From: Randolph Chung To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC/RFA/hppa] unwind pc in bottom frame using correct register Message-ID: <20041204084624.GS6359@tausq.org> Reply-To: Randolph Chung References: <20041204042049.GR16491@adacore.com> <20041204053132.GR6359@tausq.org> <20041204075101.GS16491@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041204075101.GS16491@adacore.com> 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/msg00104.txt.bz2 > Almost works. We get the first frame right, but then the backtraces > are broken because we get identical frames. This sort of makes sense > to me, since once you are past frame 0, you know which register to > unwind by inspecting the function associated to the frame (either prologue > analysis, or using the unwind info, or ...). No? So I would venture > that the SS_INSYSCALL thingy might be specific to the innermost frame? hrm, yes.... you are right. > > the bit about HPPA_FLAG_REGNUM seems to be an hpux specific thing. I > > think the syscall stub does something special so we try to return r31 > > instead of pcoqh. I haven't looked at this in detail... > > If it's HP/UX specific, it must be hurting hppa-linux? well, on hppa-linux the "flags" register is always 0, so we always read pcoqh. as you said i think we need to first better understand what is this SS_INSYSCALL thing.... randolph -- Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/