> At Thu, 7 Aug 2003 19:58:06 +0000 (UTC), "Andrew Cagney" wrote: > >> Anyone know how to get a version number from libthread_db, or it's >> absolute path? > > > looks like there are two ways one can do this: > > dlinfo() on Solaris (and other systems that have it -- but it doesn't > appear common). > > dladdr() on systems that have it and this one is more widespread (incl > solaris, linux at least with -D_GNU_SOURCE, and it looks like NetBSD > has it as well). Works for me! ... Using host libthread_db library "/lib64/tls/libthread_db.so.1". ... now if only there was also some sort of embedded revision/build string :-( Michael, Mark, ok for mainline? Too risky for 6.0? Andrew