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] |
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).
ELF says that the symbol resolution algorithm for that kind of library shall start within the library instead of the main executable. If this lookup fails the "normal" lookup starting in the main executable shall take place.
-- Markus Deuling GNU Toolchain for Linux on Cell BE deuling@de.ibm.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |