From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15856 invoked by alias); 26 Jun 2007 18:31:16 -0000 Received: (qmail 15847 invoked by uid 22791); 26 Jun 2007 18:31:16 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 26 Jun 2007 18:31:14 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id C21B72A9C3E; Tue, 26 Jun 2007 14:31:12 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rB9yBdCx4yhz; Tue, 26 Jun 2007 14:31:12 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id A73472A9C40; Tue, 26 Jun 2007 14:31:12 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 6F7A4E7B54; Tue, 26 Jun 2007 14:33:12 -0400 (EDT) Date: Tue, 26 Jun 2007 18:35:00 -0000 From: Joel Brobecker To: Markus Deuling Cc: GDB Patches , Ulrich Weigand , Daniel Jacobowitz , Kevin Buettner Subject: Re: [PING 2] [rfc]: Framework for looking up multiply defined global symbols in shared libraries Message-ID: <20070626183312.GD3700@adacore.com> References: <200705312124.l4VLO1qU019395@d12av02.megacenter.de.ibm.com> <4664DC23.70903@de.ibm.com> <4678CFAD.2030509@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4678CFAD.2030509@de.ibm.com> User-Agent: Mutt/1.4.2.2i 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-06/txt/msg00468.txt.bz2 > >ChangeLog: > > > > * cp-namespace.c (lookup_symbol_file): Add block to > > lookup_symbol_global call. > > * Makefile.in (solist_h): Add dependency on symtab header. > > (solib.o): Add dependency on objfiles header. > > (symtab.o): Add dependency on solist header. > > * solib.c (solib_global_lookup): New function. > > * solib-svr4.c (scan_dyntag): Likewise. > > (elf_locate_base): Call helper routine scan_dyntag. > > (elf_lookup_lib_symbol): New function. > > (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops. > > * solist.h (symtab.h): New include. > > (lookup_lib_global_symbol): New prototype. > > (solib_global_lookup): Likewise. > > * symtab.c: New include solist.h. > > (lookup_objfile_from_block): New function. > > (lookup_global_symbol_from_objfile): New function. > > (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call. > > (lookup_symbol_global): Call library-specific lookup procedure. > > * symtab.h (lookup_global_symbol_from_objfile): New prototype. > > * gdb.base/libmd.c: New file (testcase multiple symbol lookup). > > * gdb.base/libmd.h: Likewise. > > * gdb.base/solib_symbol.c: Likewise. > > * gdb.base/solib_symbol.exp: Likewise. Would this be worthy of a NEWs entry? -- Joel