From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9039 invoked by alias); 12 Apr 2002 08:28:07 -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 8990 invoked from network); 12 Apr 2002 08:28:04 -0000 Received: from unknown (HELO dublin.ACT-Europe.FR) (212.157.227.154) by sources.redhat.com with SMTP; 12 Apr 2002 08:28:04 -0000 Received: from berlin.ACT-Europe.FR (berlin.int.act-europe.fr [10.10.0.169]) by dublin.ACT-Europe.FR (Postfix) with ESMTP id A9DA5229E37; Fri, 12 Apr 2002 10:28:03 +0200 (MET DST) Received: by berlin.ACT-Europe.FR (Postfix, from userid 507) id 3B307980; Fri, 12 Apr 2002 10:28:03 +0200 (CEST) Date: Fri, 12 Apr 2002 01:28:00 -0000 From: Joel Brobecker To: gcc@gcc.gnu.org, gdb-patches@sources.redhat.com Subject: Re: .n suffixes for function names in stabs debug info (GCC 3.1-based compiler) Message-ID: <20020412102802.B16134@act-europe.fr> References: <20020411181942.H29472@act-europe.fr> <20020411150444.A14251@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020411150444.A14251@nevyn.them.org>; from drow@mvista.com on Thu, Apr 11, 2002 at 03:04:44PM -0400 X-SW-Source: 2002-04/txt/msg00443.txt.bz2 > I believe that GCC is wrong, but you are pointing at the wrong error. > See below a bit. Thank you for this well documented answer. > According to that, your example: > > .stabs "inside.0:f(1,1)=(1,1),inside.0,main",36,0,4,inside.0 > > should be: > > .stabs "inside.0:f(1,1)=(1,1),inside,main",36,0,4,inside.0 Should this be corrected in GCC? There seems to be an easy fix: Replace DECL_ASSEMBER_NAME by DECL_NAME in /* For a nested function, when that function is compiled, mention the containing function name as well as (since dbx wants it) our own assembler-name. */ if (context != 0) fprintf (asmfile, ",%s,%s", IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)), IDENTIFIER_POINTER (DECL_NAME (context))); I can submit a patch if this is worth it. > For your information, Jim Blandy and others are working on greatly > improving GDB's support for nested scopes right now; this may fall out > of that, especially for the DWARF-2 case. Thanks, I will keep an eye on their progress. Note that I like DWARF2 but I am also interested in stabs for some of our platforms like AiX. -- Joel