From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17285 invoked by alias); 14 May 2007 17:53:58 -0000 Received: (qmail 17277 invoked by uid 22791); 14 May 2007 17:53:57 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 14 May 2007 17:53:55 +0000 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id 5CCF54B267; Mon, 14 May 2007 12:53:53 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id 3FDDE4B262; Mon, 14 May 2007 12:53:53 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1Hnek4-0002CR-O1; Mon, 14 May 2007 13:53:52 -0400 Date: Mon, 14 May 2007 17:53:00 -0000 From: Daniel Jacobowitz To: Markus Deuling Cc: GDB Patches , Ulrich Weigand Subject: Re: [PING] [rfc]: Framework for looking up multiply defined global symbols in shared libraries Message-ID: <20070514175352.GA8422@caradoc.them.org> Mail-Followup-To: Markus Deuling , GDB Patches , Ulrich Weigand References: <464310CA.1030602@de.ibm.com> <20070510130030.GA7248@caradoc.them.org> <4643315F.3070900@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4643315F.3070900@de.ibm.com> User-Agent: Mutt/1.5.15 (2007-04-09) 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: 2007-05/txt/msg00249.txt.bz2 On Thu, May 10, 2007 at 04:51:11PM +0200, Markus Deuling wrote: > The lookup for the '-Bsymbolic' library is just one example. > > ELF says that the symbol resolution algorithm for that kind of library shall > start > within the library instead of the main executable. If this lookup fails the > "normal" > lookup starting in the main executable shall take place. Supporting -Bsymbolic this way seems like a nice idea. > There'll be another patch using that lookup framework for the combined debugger > for Cell. > If GDB debugs a Cell binary and stands in a SPU thread (which GDB thinks of as > a library) then the lookup of a symbol would prefer the symbol in the main > executable (in the PPE thread) > if available. The second patch using that framework makes sure that a symbol > lookup within > a SPU thread prefers symbols from that SPU thread. OK, we can talk about this a little later when GDB is ready to handle two architectures at once. I'll look at the patch. I was really hoping someone else would; I need help with patch review. -- Daniel Jacobowitz CodeSourcery