From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7613 invoked by alias); 24 Mar 2011 03:51:58 -0000 Received: (qmail 7598 invoked by uid 22791); 24 Mar 2011 03:51:57 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from toast.topped-with-meat.com (HELO topped-with-meat.com) (168.75.111.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 24 Mar 2011 03:51:52 +0000 Received: by topped-with-meat.com (Postfix, from userid 5281) id 429782C247; Wed, 23 Mar 2011 20:51:49 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Jan Kratochvil Cc: elfutils-devel@lists.fedorahosted.org, binutils@sourceware.org, gdb-patches@sourceware.org Subject: Re: [2/3, ppc64, elfutils patch] eu-strip vs. func addresses for GDB inferior calls In-Reply-To: Jan Kratochvil's message of Wednesday, 23 March 2011 18:21:32 +0100 <20110323172132.GA18225@host1.jankratochvil.net> References: <20110323152942.GA13640@host1.jankratochvil.net> <20110323164736.716252C1B1@topped-with-meat.com> <20110323172132.GA18225@host1.jankratochvil.net> Message-Id: <20110324035149.429782C247@topped-with-meat.com> Date: Thu, 24 Mar 2011 10:44:00 -0000 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.0 cv=K6VZ71qI c=1 sm=1 a=cUGXokloGqsA:10 a=kj9zAlcOel0A:10 a=ieZfylCaJXcXWzvo6eEA:9 a=8hyIi5ZIgCfDxY8hOuDxFsZAiaEA:4 a=CjuIK1q_8ugA:10 a=WkljmVdYkabdwxfqvArNOQ==:117 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-03/txt/msg01060.txt.bz2 > the synthetic `.funcname' instructions-pointing symbols are generated on ppc64 > by BFD on its own from the function descriptor ELF symbols `funcname'. I see. There were previous variants of the ppc64 tools (and perhaps still are modes) in which actual .funcname symbols were defined as well. I suspect that history is why BFD is organized this way. > (DWARF symbols `funcname' point to the instructions which may be confusing.) It is confusing if you use a noncanonical term like "DWARF symbol". In DWARF, there are well-defined entities like DIEs that have well-defined attributes that are specifically about PC values, and so none of that is confusing on its own. It is just wrong to imagine that DWARF defines something called a symbol that is akin to an ELF symbol. > I agree it is only a workaround of the BFD design. Then BFD should just be fixed. Alan surely knows more about this particular stuff than anyone else. His suggestions about BFD and GDB internals are probably the most useful. Thanks, Roland