This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
question about _dl_debug_state in new glibc
- From: Randolph Chung <randolph at tausq dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Mon, 11 Oct 2004 10:44:11 -0700
- Subject: question about _dl_debug_state in new glibc
- Reply-to: Randolph Chung <randolph at tausq dot org>
Hello,
While doing some testing with glibc and gdb recently, I ran into
a problem where gdb was no longer able to locate the _dl_debug_state
function in glibc to track shared object loads. After some digging I
found that there was a change in glibc some months ago that changed the
visibility of _dl_debug_state to "hidden".
Can somebody please explain why this was done? I know there is an
"exported" interface for looking for this function by going through
r_debug.r_brk, but, as documented in the glibc code, gdb doesn't do
this. While one might argue this is a gdb bug that needs fixing,
breaking compatibility with a major consumer of this interface
is not very nice either....
thanks,
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/