From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2147 invoked by alias); 10 May 2007 13:00:51 -0000 Received: (qmail 1620 invoked by uid 22791); 10 May 2007 13:00:43 -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; Thu, 10 May 2007 13:00:38 +0000 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id F1A944B267; Thu, 10 May 2007 08:00:33 -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 153EC4B262; Thu, 10 May 2007 08:00:31 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1Hm8Fy-000277-LC; Thu, 10 May 2007 09:00:30 -0400 Date: Thu, 10 May 2007 13:00: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: <20070510130030.GA7248@caradoc.them.org> Mail-Followup-To: Markus Deuling , GDB Patches , Ulrich Weigand References: <464310CA.1030602@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <464310CA.1030602@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/msg00156.txt.bz2 On Thu, May 10, 2007 at 02:32:10PM +0200, Markus Deuling wrote: > Hi, > > > this patch introduces a framework for looking up multiply defined global > symbols from shared libraries. Solib handler like for example solib-svr4.c can > now install a callback to implement a library-specific routine for looking up > global symbols. > > > As an example I implemented a special lookup routine for ELF shared libraries > linked with -Bsymbolic. While the focus is within such a library, the global > symbol lookup shall first search for the symbol within this library and then > go through the main executable if not found. Is this the point of the patch, or just an example? I mean, what else would you use this for besides -Bsymbolic? There's some benefit to looking up the right symbol, e.g. for "print foo()". But for breakpoints, I still think the way to go is to breakpoint all functions with the same name and/or allow the user to specify a copy explicitly (apparently DBX does the latter). -- Daniel Jacobowitz CodeSourcery