This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: Recognize bottom of stack on Linux
On Mon, Feb 04, 2002 at 05:49:46PM -0800, Michael Snyder wrote:
> Daniel Jacobowitz wrote:
> >
> > On Mon, Feb 04, 2002 at 06:41:10PM -0700, Kevin Buettner wrote:
> > > On Feb 4, 8:32pm, Andrew Cagney wrote:
> > >
> > > [Regarding what, if anything, to show of the frames below main() in a
> > > backtrace...]
> > > > Perhaphs the correct fix is to let the user decide. Add a ``set
> > > > stack-bottom-strategy ....'' :-)
> > >
> > > I think that may be best. I don't usually want to look at what's
> > > below main(), but when I do, it's usually pretty important to me...
> >
> > Set backtrace-below-main perhaps?
>
> Don't forget about threads -- their backtrace does not contain main at
> all.
Should not matter. The backtrace only stops when it detects main(), or
_start, or a PC of 0; I believe the PC of 0 check is what picks up
threads.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer