From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5599 invoked by alias); 22 Oct 2002 21:25:30 -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 5592 invoked from network); 22 Oct 2002 21:25:29 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 22 Oct 2002 21:25:29 -0000 Received: from localhost.redhat.com (to-dhcp51.toronto.redhat.com [172.16.14.151]) by touchme.toronto.redhat.com (Postfix) with ESMTP id B67E680007A for ; Tue, 22 Oct 2002 17:25:28 -0400 (EDT) Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 04AFA3EFF; Tue, 22 Oct 2002 17:25:27 -0400 (EDT) Message-ID: <3DB5C246.5000104@redhat.com> Date: Tue, 22 Oct 2002 14:25:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [rfc/rfa] accept DW_TAG_namespace and friends, possibly on 5.3 References: <20021022205154.GA7931@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-10/txt/msg00427.txt.bz2 > On Tue, Oct 22, 2002 at 01:40:25PM -0700, David Carlton wrote: > >> The current situation around C++ namespace debugging info is that GCC >> isn't generating it because, if it were generating it, it would >> produce debugging info that GDB really can't handle. Basically, >> DW_TAG_namespace entries have children that are important, so GDB has >> to know a little bit about those nodes in order not to miss large >> chunks of debugging info. (This is true whether or not GDB wants to >> do anything particularly namespace-specific with that debugging info.) >> >> So it seems to me like it would be a good idea to change GDB as >> quickly as possible to not get confused by DW_TAG_namespace (as well >> as DW_TAG_imported_declaration and DW_TAG_imported_module): we >> shouldn't wait until adding more namespace functionality to GDB. For >> example, if that support makes it into GDB 5.3, then maybe GCC 3.3 >> will be able to generate the appropriate debugging info, so when a GDB >> 5.4 (or whatever) rolls around that handles namespaces better, users >> will be able to take advantage of it immediately (instead of having to >> wait for the next GCC release). >> >> Here are some patches to let GDB accept that debugging information: I >> think it would be a good idea to get it into 5.3 as well as mainline, >> if possible. They're quite minimal changes: they make sure that, when >> reading partial symbols, we descend into DW_TAG_namespace entries, >> that when reading full symbols, we read children of DW_TAG_namespace >> entries (but we don't keep around any more namespace information than >> we do currently: e.g. we still get names from >> DW_AT_MIPS_linkage_name), and that we don't complain about the >> presence of DW_TAG_imported_declaration or DW_TAG_imported_module (but >> we also don't do anything useful about that info). > > > I'd like to raise my voice in support of this patch, for both trunk and > 5.3-branch. David's quite right - we need this in order for GCC to > move forward, in order for us to move forward. Me to, now we're talking :-) One less lame excuse for a GCC developer to beat us up :-) Andrew