This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch, rfc, 6] Check for "main" in minimal symbols in BT
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 7 Jul 2003 17:07:56 -0400
- Subject: Re: [patch, rfc, 6] Check for "main" in minimal symbols in BT
- References: <3F09DB1D.6070003@redhat.com>
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