From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29745 invoked by alias); 12 Sep 2008 04:19:52 -0000 Received: (qmail 29730 invoked by uid 22791); 12 Sep 2008 04:19:52 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 12 Sep 2008 04:19:17 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id F24992A96C4; Fri, 12 Sep 2008 00:19:15 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PoLcemZ+SUDe; Fri, 12 Sep 2008 00:19:15 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id B13462A96C1; Fri, 12 Sep 2008 00:19:15 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 782B0E7ACD; Thu, 11 Sep 2008 21:19:13 -0700 (PDT) Date: Fri, 12 Sep 2008 04:19:00 -0000 From: Joel Brobecker To: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [RFA/commit/dwarf] Create partial symbols for nested subprograms Message-ID: <20080912041913.GB3714@adacore.com> References: <20080910201959.GC10133@adacore.com> <20080910203437.GA26162@caradoc.them.org> <20080911050018.GR12222@adacore.com> <20080911222724.GA22289@caradoc.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080911222724.GA22289@caradoc.them.org> User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-09/txt/msg00251.txt.bz2 > > GNU C has nested functions. Standard C does not. I wrote a simple > > test case and compiled it with GCC. The resulting DWARF (I appended a > > snippet) does not nest functions here .. but perhaps this is a bug in > > GCC, I couldn't say. > > Doesn't it? > > > <1><4a>: Abbrev Number: 2 (DW_TAG_subprogram) > > <2><69>: Abbrev Number: 3 (DW_TAG_subprogram) Yes, I confirm it does. The readelf output can be confusing the first time. That nesting level on the left is hard to notice... -- Joel