This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PING 2] [rfc]: Framework for looking up multiply defined global symbols in shared libraries
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Markus Deuling <deuling at de dot ibm dot com>
- Cc: GDB Patches <gdb-patches at sourceware dot org>, Ulrich Weigand <uweigand at de dot ibm dot com>, Daniel Jacobowitz <drow at false dot org>, Kevin Buettner <kevinb at redhat dot com>
- Date: Tue, 26 Jun 2007 14:33:12 -0400
- Subject: Re: [PING 2] [rfc]: Framework for looking up multiply defined global symbols in shared libraries
- References: <200705312124.l4VLO1qU019395@d12av02.megacenter.de.ibm.com> <4664DC23.70903@de.ibm.com> <4678CFAD.2030509@de.ibm.com>
> >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