From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14233 invoked by alias); 29 Jun 2006 02:27:04 -0000 Received: (qmail 14217 invoked by uid 22791); 29 Jun 2006 02:27:03 -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; Thu, 29 Jun 2006 02:27:02 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FvmF8-0008Qg-M0; Wed, 28 Jun 2006 22:26:58 -0400 Date: Fri, 30 Jun 2006 19:05:00 -0000 From: Daniel Jacobowitz To: Paul Breed Cc: gdb@sourceware.org Subject: Re: Frame unwind and the sentinal frame. Message-ID: <20060629022658.GA32372@nevyn.them.org> Mail-Followup-To: Paul Breed , gdb@sourceware.org References: <6.2.3.4.2.20060628164353.060d3530@mail.netburner.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6.2.3.4.2.20060628164353.060d3530@mail.netburner.com> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00264.txt.bz2 On Wed, Jun 28, 2006 at 04:47:36PM -0700, Paul Breed wrote: > I'm working on a GDB remote stub for the coldfire. (Think 68K) > > When the system does a bt (back trace ) > or an MI stack-info-depth > > It eventually walks off the end of the frames and generates an error message > > Previous frame inner to this frame (corrupt stack?) > > How is GDB supposed to detect the "Last" frame in the stack, The right answer depends on your architecture: a NULL frame pointer, a zero PC, or a function marked as an ELF entry point are all reasonable choices. Then, of course, you have to make sure GDB agrees with you on the proper convention. As you'll see in the list archives that can sometimes be a bit iffy. > I think this is called the sentinal frame? No - that's at the other end of the stack, actually. It's more of a GDB internal detail. -- Daniel Jacobowitz CodeSourcery