[PATCH 0/2] GNU/Linux: Stop using libthread_db/td_ta_thr_iter

Pedro Alves
2015-02-08T19:11:04Z

This one made me scratch my head for a while. My
all-stop-on-top-of-non-stop series was causing odd GDB hangs. Turned
out to be that we can't use libthread_db/td_ta_thr_iter when threads
are running. This series stops GDB from using it altogether, when
debugging live programs.

The second patch is the real deal. The first patch fixes latent bugs
that the second patch's test exposed, though after the second patch,
the buggy function won't be used on modern system anymore...

Pedro Alves (2):
linux-nat.c: fix a few lin_lwp_attach_lwp issues
GNU/Linux: Stop using libthread_db/td_ta_thr_iter

gdb/gdbserver/thread-db.c | 18 +-
gdb/linux-nat.c | 125 +++++++----
gdb/linux-nat.h | 16 +-
gdb/linux-thread-db.c | 237 ++++++++++-----------
gdb/nat/linux-procfs.c | 13 ++
gdb/nat/linux-procfs.h | 3 +
.../gdb.threads/multi-create-ns-info-thr.exp | 50 +++++
7 files changed, 287 insertions(+), 175 deletions(-)
create mode 100644 gdb/testsuite/gdb.threads/multi-create-ns-info-thr.exp

--
1.9.3