From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4543 invoked by alias); 12 Jul 2005 17:34:57 -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 4461 invoked by uid 22791); 12 Jul 2005 17:34:53 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 12 Jul 2005 17:34:53 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1DsOeg-0000Og-Rl; Tue, 12 Jul 2005 13:34:50 -0400 Date: Tue, 12 Jul 2005 17:34:00 -0000 From: Daniel Jacobowitz To: Andrew STUBBS Cc: GDB Subject: Re: Invalid registers Message-ID: <20050712173450.GA1486@nevyn.them.org> Mail-Followup-To: Andrew STUBBS , GDB References: <20050711154926.GB30937@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-07/txt/msg00140.txt.bz2 On Tue, Jul 12, 2005 at 05:04:41PM +0100, Andrew STUBBS wrote: > Thank you. This has helped me find the right stuff to look at. > > I do not think I actually want to use dwarf2_frame_set_init_reg. The > compiler (GCC 3.4.3) produces CFI information which I think ought to be > enough. > > The function execute_cfa_program in dwarf2-frame.c appears to load all the > relevant data (setting breakpoints in strategic places show this). If I > use 'up' and 'info registers' I see the values change, which shows that > the CFI data has been loaded (doesn't it?). It just appears that the 'how' > field from the CFA is being ignored when the values are printed. Setting > 'how' via dwarf2_frame_set_init_reg is not ignored however. It must be > being reset, or perhaps not copied in the first place. > > Any clues? Sorry, not enough information - I'd need specifics. GCC's CFI generally does not represent call-clobbered registers; waste of space for a runtime unwinder. -- Daniel Jacobowitz CodeSourcery, LLC