This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Setting breakpoints where duplicate symbols are present


Daniel Jacobowitz wrote:
> On Sat, May 05, 2007 at 08:26:47AM +0530, Jaimon Jose wrote:
> > My questions are:
> > 1. How do I inspect all the symbols of the same name in the process
> > space?  ( I tried loading the symbol from each library
> > load-symbol-file.  It didn't help either. In case of ambiguity, dbx used
> > to show all symbols qualified with the library name and let us choose
> > the right one)
> > 2. How do I qualify a symbol with the library name where it belongs to?
> > ( for eg.  `libfoo.so`foo_bar )
> 
> Basically, you can't.  Yet.  We know we need to fix this.

B.t.w., Markus is currently working on a patch:
http://sourceware.org/ml/gdb-patches/2007-05/msg00037.html

that will at least have GDB follow the ld.so symbol lookup rule,
so if you access a symbol name from within a frame belonging
to a -Bsymbolic shared library, you'll get the symbol definition
from within that library.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]