From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6536 invoked by alias); 17 Oct 2014 09:37:30 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 6526 invoked by uid 89); 17 Oct 2014 09:37:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Oct 2014 09:37:28 +0000 Received: from svr-orw-fem-04.mgc.mentorg.com ([147.34.97.41]) by relay1.mentorg.com with esmtp id 1Xf3yO-00005C-QX from Yao_Qi@mentor.com ; Fri, 17 Oct 2014 02:37:24 -0700 Received: from GreenOnly (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.3.181.6; Fri, 17 Oct 2014 02:37:24 -0700 From: Yao Qi To: Andrew Gontarek CC: Subject: Re: dwarf2_physname() question References: <543EA711.7070603@cray.com> Date: Fri, 17 Oct 2014 09:37:00 -0000 In-Reply-To: <543EA711.7070603@cray.com> (Andrew Gontarek's message of "Wed, 15 Oct 2014 11:55:45 -0500") Message-ID: <87d29rkplk.fsf@codesourcery.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00058.txt.bz2 Andrew Gontarek writes: > My question is why is dwarf2_physname() ignoring the DW_AT_name if it is > present? The DW_AT_name is supposed to represent the identifier name as it > appears in the source. Shouldn't that take priority when gdb creates the > symbol? DW_AT_name is there but may be broken, GDB has to rely on DW_AT_MIPS_linkage_name. I am not very sure on this, so people who are more familiar on dwarf can give comments on top of mine. I find some discussions on this thread, and it may help [RFA] dwarf2_physname FINAL https://sourceware.org/ml/gdb-patches/2010-03/msg00220.html --=20 Yao (=E9=BD=90=E5=B0=A7)