From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6220 invoked by alias); 7 Jul 2003 21:07:57 -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 6212 invoked from network); 7 Jul 2003 21:07:57 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 7 Jul 2003 21:07:57 -0000 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19ZdDI-00056r-00 for ; Mon, 07 Jul 2003 17:07:56 -0400 Date: Mon, 07 Jul 2003 21:07:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: [patch, rfc, 6] Check for "main" in minimal symbols in BT Message-ID: <20030707210756.GA19339@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <3F09DB1D.6070003@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F09DB1D.6070003@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-07/txt/msg00145.txt.bz2 On Mon, Jul 07, 2003 at 04:42:05PM -0400, Andrew Cagney wrote: > Hello, > > This patch extends the inside_main_func() check so that, when "main" > isn't found in the symbol table, the mimimal symbol table is searched. > In case you're wondering, the logic for finding the end address of > "main" was cobbled together from random bits of code from blockframe and > the alpha. It certainly appears to work for d10v and i386. > > Anyway, with this, the d10v's assembler backtrace stops at main goving > the short 'n' sharp backtrace > > foo2 > main > > instead of the current: > > foo2 > main > _start > _start > > The patch (since things now stop in "main") also removes the d10v > specific frame ID eq test; and updates the testsuite so that it doesn't > allow "_start" in the backtrace. > > I intend checking this into both 6.0 branch and mainline in a few days. Definitely like the patch! Should we make inside_entry_func also check the minimal symbol table? Since we have the entry point PC reliably (via ELF headers). -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer