From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1890 invoked by alias); 5 Feb 2002 02:55:09 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 1732 invoked from network); 5 Feb 2002 02:55:06 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 5 Feb 2002 02:55:06 -0000 Received: from drow by nevyn.them.org with local (Exim 3.34 #1 (Debian)) id 16Xvl8-0000X4-00; Mon, 04 Feb 2002 21:55:02 -0500 Date: Mon, 04 Feb 2002 18:55:00 -0000 From: Daniel Jacobowitz To: Michael Snyder Cc: Kevin Buettner , Andrew Cagney , Jim Blandy , gdb-patches@sources.redhat.com Subject: Re: RFA: Recognize bottom of stack on Linux Message-ID: <20020204215502.A1954@nevyn.them.org> Mail-Followup-To: Michael Snyder , Kevin Buettner , Andrew Cagney , Jim Blandy , gdb-patches@sources.redhat.com References: <200202040206.VAA21952@zenia.red-bean.com> <1020204190121.ZM17294@localhost.localdomain> <3C5F3619.9060708@cygnus.com> <1020205014110.ZM19478@localhost.localdomain> <20020204204432.A31721@nevyn.them.org> <3C5F3A3A.6565A292@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C5F3A3A.6565A292@redhat.com> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-02/txt/msg00099.txt.bz2 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