From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15325 invoked by alias); 14 Jul 2005 14:11:06 -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 15144 invoked by uid 22791); 14 Jul 2005 14:11:00 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 14 Jul 2005 14:11:00 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1Dt43z-0000CL-W0; Thu, 14 Jul 2005 09:47:44 -0400 Date: Thu, 14 Jul 2005 14:11:00 -0000 From: Daniel Jacobowitz To: Andrew STUBBS Cc: GDB Subject: Re: Invalid registers Message-ID: <20050714134743.GC531@nevyn.them.org> Mail-Followup-To: Andrew STUBBS , GDB References: <20050711154926.GB30937@nevyn.them.org> <20050712173450.GA1486@nevyn.them.org> <20050713154207.GA28768@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/msg00170.txt.bz2 On Thu, Jul 14, 2005 at 10:33:25AM +0100, Andrew STUBBS wrote: > It is working as it should, but it doesn't look like it at first sight. > When I set a breakpoint on a function it breaks _before_ the callee save > registers have been saved (this may be a mistake, I'm not sure yet). If I Yes - this is generally a mistake, either in the prologue analyzer or in your compiler's generated line info. But it isn't necessarily an important mistake. > step into the function a little more then the CFI kicks in and it > overrides the initial settings I put in. Right. This is a little unfortunate, but I don't know what we can do about it - it seems unlikely to be worth the trouble. FWIW, a compiler _could_ generate sufficiently detailed CFI for this. -- Daniel Jacobowitz CodeSourcery, LLC