From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29533 invoked by alias); 17 May 2011 19:04:03 -0000 Received: (qmail 29525 invoked by uid 22791); 17 May 2011 19:04:02 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD 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; Tue, 17 May 2011 19:03:48 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4HJ3lBe025570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 17 May 2011 15:03:47 -0400 Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p4HJ3jFJ013814 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 May 2011 15:03:47 -0400 Message-ID: <4DD2C691.9020405@redhat.com> Date: Tue, 17 May 2011 19:04:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.38.b3pre.fc13 Lightning/1.0b3pre Thunderbird/3.1.9 MIME-Version: 1.0 To: Jan Kratochvil CC: gdb-patches@sourceware.org Subject: Re: [rfc] physname cross-check [Re: [RFA] Typedef'd method parameters [0/4]] References: <4DB09E6C.8000202@redhat.com> <4DCC50D8.5030903@redhat.com> <20110516154851.GA24555@host1.jankratochvil.net> <4DD2BB36.5000704@redhat.com> <20110517183309.GA1385@host1.jankratochvil.net> In-Reply-To: <20110517183309.GA1385@host1.jankratochvil.net> 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: 2011-05/txt/msg00391.txt.bz2 On 05/17/2011 11:33 AM, Jan Kratochvil wrote: > On Tue, 17 May 2011 20:15:18 +0200, Keith Seitz wrote: >> Is reverting dwarf2_physname better or worse than DW_AT_MIPS_linkage_name? > > In which single case can be dwarf2_physname better than > DW_AT_MIPS_linkage_name? That's the question. dwarf2_physname is AFAIK to > give the linkage name and DW_AT_MIPS_linkage_name always matches that. Ideally the two should be equivalent. I don't remember all the specifics any more, but there were problems with constructors (already mentioned) and templates. These might have simply been compiler bugs. Template bugs might now be fixed because of the new template attributes. >> Using DW_AT_MIPS_linkage_name will not pass cpexprs.exp without some >> hacking; the demangled name will need to be re-parsed (to remove >> typedefs > > DW_AT_MIPS_linkage_name already has all the typedefs removed - it is the > linkage name. It should, but IIRC, I kept seeing, e.g., "std::string" show up in the demangled form of DW_AT_MIPS_linkage_name. Perhaps this was due to an older compiler I was using? I cannot seem to reproduce this today. [Or maybe I am just remembering something else?] Sorry, my memory of this has bitrotted quite a bit. Keith