From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5599 invoked by alias); 11 Nov 2004 03:09:50 -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 5576 invoked from network); 11 Nov 2004 03:09:43 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 11 Nov 2004 03:09:43 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CS5L8-0001GM-Vy; Wed, 10 Nov 2004 22:09:39 -0500 Date: Thu, 11 Nov 2004 09:57:00 -0000 From: Daniel Jacobowitz To: Randolph Chung Cc: gdb@sources.redhat.com Subject: Re: dwarf2 and frame bases Message-ID: <20041111030938.GA4784@nevyn.them.org> Mail-Followup-To: Randolph Chung , gdb@sources.redhat.com References: <20041110235149.GO15714@tausq.org> <20041110235649.GA741@nevyn.them.org> <20041111000933.GP15714@tausq.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041111000933.GP15714@tausq.org> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-11/txt/msg00104.txt.bz2 On Wed, Nov 10, 2004 at 04:09:33PM -0800, Randolph Chung wrote: > > 'b' is in some particular frame. It's up the stack from the current > > frame at the time of that error message, I get. So we should be > > unwinding reg3 and using the unwound copy to determine the value of b. > > Is the unwinding breaking? > > but the unwound copy is wrong too... :) i explain more below.. Then, that's a bug in the unwinder. > r3 is also a callee-saved register, so its contents are undefined on > entry to the function. so even if you were to unwind r3, you won't get > the right frame base. That's your mistake. At the first instruction of the prologue, unwinding r3 for the previous frame should use the copy already in r3; you need to be falling back to a prologue analyzer and cutting it off at $pc. I thought you already were? -- Daniel Jacobowitz