From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3255 invoked by alias); 6 Apr 2004 21:58:17 -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 2951 invoked from network); 6 Apr 2004 21:58:11 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 6 Apr 2004 21:58:11 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1BAyaA-0007Ov-Nd; Tue, 06 Apr 2004 17:58:10 -0400 Date: Tue, 06 Apr 2004 21:58:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: [mips] When to use a proc_desc Message-ID: <20040406215810.GA28116@nevyn.them.org> Mail-Followup-To: Andrew Cagney , gdb@sources.redhat.com References: <20040325040322.GA12885@nevyn.them.org> <4062FCC4.5080102@gnu.org> <4073279E.2030807@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4073279E.2030807@gnu.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-04/txt/msg00046.txt.bz2 On Tue, Apr 06, 2004 at 05:56:46PM -0400, Andrew Cagney wrote: > >I'll need to study this further, however, look at HP/UX. > > > >That unwinder checks its equivalent PDR against the prologue, ticking each > >register off as it is encountered. > > I think the long answer is the same -- look at HP/UX. Fetch the PDR and > then compare it against the instructions up-to $pc to see how many of > those stores actually occured. I think that defeats the point of having the proc_desc in the first place. If we're only going to acknowledge register saves that we can 'easily' find, then why bother reading any of this out of the proc_desc at all? That would man the only useful proc_desc would b one which said fewer registers were saved than really were, i.e. you could use them to terminate the backtrace but not much else. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer