This is the mail archive of the gdb-patches@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: Get versioned minsyms from dynamic symtab (Was: Re: How to call operator<< functions?)


On Thu, 2006-08-31 at 13:33 +0200, Frederic RISS wrote:
> In the general case, GDB doesn't use the dynamic symtab because it
> contains usually only a subset of the static table information. The
> attached patch make GDB store dynamic versioned symbols. 
> 
> Maybe this is harvests too much symbols, and we should limit it to the
> dynamic symbols of the main executable. It's easy enough to do, we just
> need to pass the 'mainline' flag to elf_symfile_read from
> elf_symtab_read. 

This patch will obviously do bad things when reading the symbols of a
shared library that exports versioned symbols. It'll record the same
symbol name with different addresses... silly me.

At the very least it should be limited to the main executable (where we
can't have multiple versions of the same symbol defined).

Should I post an updated patch, or does anyone think this simple
special-casing approach is a no-go?



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