From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15379 invoked by alias); 13 May 2006 15:17:52 -0000 Received: (qmail 15371 invoked by uid 22791); 13 May 2006 15:17:51 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Sat, 13 May 2006 15:17:50 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FevsK-0001AE-Db; Sat, 13 May 2006 11:17:48 -0400 Date: Sat, 13 May 2006 15:46:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis , gdb-patches@sourceware.org Subject: Re: [RFC] Move the frame zero PC check earlier Message-ID: <20060513151748.GA4411@nevyn.them.org> Mail-Followup-To: Mark Kettenis , gdb-patches@sourceware.org References: <20060510180312.GA12606@nevyn.them.org> <200605130946.k4D9kZ2M001331@elgar.sibelius.xs4all.nl> <20060513151338.GB3721@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060513151338.GB3721@nevyn.them.org> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00295.txt.bz2 On Sat, May 13, 2006 at 11:13:38AM -0400, Daniel Jacobowitz wrote: > I think that determining the end of stack cleanly is one of the more > important things for GDB to get right. And when we've run out of > useful information, the stack appears to end, and we're quite justified > in reporting that the stack ended. It's quite complex enough already > without reporting "but the end of the stack looks a little funny to > me...". By the way, there's plenty of precedent for this in GDB, including some you've written yourself. If the saved value of %ebp on the stack gets clobbered, when the i386 prologue analyzer is involved, we'll gracefully report that there are no more frames (cache->base == 0). Why should this be different? -- Daniel Jacobowitz CodeSourcery