From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29379 invoked by alias); 12 Sep 2002 21:55: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 29357 invoked from network); 12 Sep 2002 21:55:53 -0000 Received: from unknown (HELO mailsrv.otenet.gr) (195.170.0.5) by sources.redhat.com with SMTP; 12 Sep 2002 21:55:53 -0000 Received: from neutrino.particles.org (athe535-d025.otenet.gr [62.103.187.25]) by mailsrv.otenet.gr (8.12.4/8.12.4) with ESMTP id g8CLtaqt016639; Fri, 13 Sep 2002 00:55:37 +0300 (EEST) Received: (from anteater@localhost) by neutrino.particles.org (8.11.6/8.11.6) id g8CMD6u05315; Fri, 13 Sep 2002 01:13:06 +0300 Date: Thu, 12 Sep 2002 14:55:00 -0000 From: Elias Athanasopoulos To: Richard Henderson Cc: Pierre Habraken , binutils@sources.redhat.com, gdb@sources.redhat.com, Richard.Earnshaw@arm.com Subject: Re: [PATCH] Re: Section .debug_info in object file Message-ID: <20020913011306.B1134@neutrino.particles.org> References: <3D806189.7A45FCBA@imag.fr> <20020912220303.A1134@neutrino.particles.org> <20020912205434.GA20375@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020912205434.GA20375@redhat.com>; from rth@redhat.com on Thu, Sep 12, 2002 at 01:54:34PM -0700 X-SW-Source: 2002-09/txt/msg00132.txt.bz2 On Thu, Sep 12, 2002 at 01:54:34PM -0700, Richard Henderson wrote: > On Thu, Sep 12, 2002 at 10:03:03PM +0300, Elias Athanasopoulos wrote: > > * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field. > > (out_debug_info): Likewise. > > I suppose we could do something like this. > > But it seems to me that this is a gdb bug. The complete file+line > mapping is available in .debug_line. What purpose does the AT_name > field of the compilation unit serve? Maybe gdb can grab the info from .debug_line, but still gcc uses DW_AT_name for (every) C source file and this conflicts with gas which skips this field (readelf, as I wrote, produces garbage). Elias -- http://gnewtellium.sourceforge.net MP3 is not a crime.