This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/2] GNU/Linux: Stop using libthread_db/td_ta_thr_iter
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Sun, 8 Feb 2015 19:10:57 +0000
- Subject: [PATCH 0/2] GNU/Linux: Stop using libthread_db/td_ta_thr_iter
- Authentication-results: sourceware.org; auth=none
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