Jeff mentioned recently that with a NPTL-enabled glibc, gdb debugging of
any threaded app fails. For example:
(gdb) run
Starting program: /home/tausq/userspace/thread_test2
[Thread debugging using libthread_db enabled]
Error while reading shared library symbols:
find_new_threads_callback: cannot get thread info: generic error
Two fixes, one in glibc and one in gdb, are required to fix this. The
attached patch is the glibc portion.
2007-07-12 Randolph Chung <tausq@debian.org>
* sysdeps/hppa/nptl/tls.h (DB_THREAD_SELF): Fix definition.
Please apply if ok.