From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20217 invoked by alias); 16 Jun 2005 23:36:55 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 20113 invoked by uid 22791); 16 Jun 2005 23:36:34 -0000 Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 16 Jun 2005 23:36:34 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.0/8.13.0) with ESMTP id j5GNaHu4024905; Fri, 17 Jun 2005 01:36:17 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.4/8.13.3) with ESMTP id j5GNaGgT014068; Fri, 17 Jun 2005 01:36:16 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id j5GNaCYD021758; Fri, 17 Jun 2005 01:36:12 +0200 (CEST) Date: Thu, 16 Jun 2005 23:36:00 -0000 Message-Id: <200506162336.j5GNaCYD021758@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: sjohnson@sakuraindustries.com CC: drow@false.org, gdb@sources.redhat.com In-reply-to: <42B322E5.4080403@sakuraindustries.com> (message from Steven Johnson on Fri, 17 Jun 2005 08:22:13 -1100) Subject: Re: Unwinding stack past main() when it has another name References: <200506152247.07232.rodda@kde.org> <200506160112.58152.rodda@kde.org> <20050615163658.GA18795@nevyn.them.org> <200506161743.00708.rodda@kde.org> <20050616132242.GA5480@nevyn.them.org> <42B322E5.4080403@sakuraindustries.com> X-SW-Source: 2005-06/txt/msg00180.txt.bz2 Date: Fri, 17 Jun 2005 08:22:13 -1100 From: Steven Johnson Daniel Jacobowitz wrote: >The fact that we stop at _start is a feature, so hopefully you can rely >on that in the future. > >For some non-C languages we get the name of the main function from >debug information, but for C it's always main() > > This isnt always the case for embedded targets. There is no RULE that C programs must have a main() function. Oh there is. But of course you don't have to play by that rule. But if you don't play by that rule you're very likely want to see the complete backtrace up to the entry point of your program anyway. Mark