This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Move the frame zero PC check earlier
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