This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Move the frame zero PC check earlier


> Date: Sat, 13 May 2006 11:17:48 -0400
> From: Daniel Jacobowitz <drow@false.org>
> 
> 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?

Because once upon a time, when GCC still exclusively used %ebp as a
frame pointer, %ebp == 0 was the standard way to mark the outermost
frame.  I should probably remove that check.

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]