From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11591 invoked by alias); 23 Mar 2011 23:30:35 -0000 Received: (qmail 11572 invoked by uid 22791); 23 Mar 2011 23:30:34 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-pv0-f169.google.com (HELO mail-pv0-f169.google.com) (74.125.83.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Mar 2011 23:30:29 +0000 Received: by pvg4 with SMTP id 4so1731395pvg.0 for ; Wed, 23 Mar 2011 16:30:28 -0700 (PDT) Received: by 10.142.139.18 with SMTP id m18mr5376184wfd.373.1300923028742; Wed, 23 Mar 2011 16:30:28 -0700 (PDT) Received: from bubble.grove.modra.org ([115.187.252.19]) by mx.google.com with ESMTPS id s41sm10666075wfc.15.2011.03.23.16.30.25 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 23 Mar 2011 16:30:27 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 961B116DE62E; Thu, 24 Mar 2011 10:00:21 +1030 (CST) Date: Thu, 24 Mar 2011 03:09:00 -0000 From: Alan Modra To: Jan Kratochvil Cc: Roland McGrath , 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 Message-ID: <20110323233021.GI13754@bubble.grove.modra.org> Mail-Followup-To: Jan Kratochvil , Roland McGrath , elfutils-devel@lists.fedorahosted.org, binutils@sourceware.org, gdb-patches@sourceware.org References: <20110323152942.GA13640@host1.jankratochvil.net> <20110323164736.716252C1B1@topped-with-meat.com> <20110323172132.GA18225@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110323172132.GA18225@host1.jankratochvil.net> User-Agent: Mutt/1.5.20 (2009-06-14) 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/msg01047.txt.bz2 On Wed, Mar 23, 2011 at 06:21:32PM +0100, Jan Kratochvil wrote: > BFD has no idea about the linkage of the binary and the .debug BFD files. > Only GDB connects the binary and the .debug BFD files content for the user. I think the correct fix is for gdb to use the binary bfd when calling get_synthetic_symtab. That isn't as simple as it sounds, because you obviously need to use symbols from the debug info file. See oprofile code handling exactly this situation in libutils++/bfd_support.cpp. -- Alan Modra Australia Development Lab, IBM