From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15340 invoked by alias); 5 Feb 2010 23:10:55 -0000 Received: (qmail 15329 invoked by uid 22791); 5 Feb 2010 23:10:54 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Feb 2010 23:10:51 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o15NAniI019903 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 5 Feb 2010 18:10:50 -0500 Received: from [IPv6:::1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o15NAkJ2022952 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 5 Feb 2010 18:10:49 -0500 Message-ID: <4B6CA576.8090606@redhat.com> Date: Fri, 05 Feb 2010 23:10:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-3.fc11 Lightning/1.0pre Thunderbird/3.0 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: [RFA 2/4] dwarf2_physname References: <20100201193941.GA17445@caradoc.them.org> <4B674D1B.5040209@redhat.com> <20100201221905.GA15584@caradoc.them.org> <4B68B400.3030407@redhat.com> <20100203024553.GA22235@caradoc.them.org> <20100204181358.GA27544@caradoc.them.org> <4B6C51BC.6040601@redhat.com> <20100205172352.GA16328@caradoc.them.org> <4B6C7E54.8080203@redhat.com> <20100205205617.GA30325@caradoc.them.org> In-Reply-To: <20100205205617.GA30325@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2010-02/txt/msg00177.txt.bz2 On 02/05/2010 12:57 PM, Daniel Jacobowitz wrote: > (Things I'm wondering about that we can sort out later: namespace X { > int f() { extern int y; } }, does y go in a namespace? What > namespace? It certainly doesn't go in X::f()::y but I don't know what > GCC emits. I would expect some DIE to contain a DW_AT_specification that refers to the real y, and that we use that to determine what to do. The only testcase I could come up with your example was with "y" defined inside X, and the debuginfo behave as above. I cannot seem to get gcc to resolve "y" to anything but X::y, but then I'm no expert on namespaces & extern. Not even a novice. > namespace X { class Y { static int x; } }, is that DW_AT_extern?) Yes, it is DW_AT_external. Keith