aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/thread-db.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-01-26 17:52:25 +0000
committerPedro Alves <palves@redhat.com>2015-02-06 15:57:06 +0000
commitd6c146e9ea09e050e6f05fa00312de3fe763e811 (patch)
tree0181cf94194f0ea7f9f2f9cc1df2330873ac577c /gdb/gdbserver/thread-db.c
parentb9d6130764916fac3d9bcfde2d672053a0ef3316 (diff)
downloadgdb-d6c146e9ea09e050e6f05fa00312de3fe763e811.zip
gdb-d6c146e9ea09e050e6f05fa00312de3fe763e811.tar.gz
gdb-d6c146e9ea09e050e6f05fa00312de3fe763e811.tar.bz2
libthread_db: attaching to terminated/joined threads, debug output
Add a bit of debug output that made things a bit easier for me before. gdb/ 2015-02-06 Pedro Alves <palves@redhat.com> * linux-thread-db.c (find_new_threads_callback): Add debug output. gdb/gdbserver/ 2015-02-06 Pedro Alves <palves@redhat.com> * thread-db.c (find_new_threads_callback): Add debug output.
Diffstat (limited to 'gdb/gdbserver/thread-db.c')
-rw-r--r--gdb/gdbserver/thread-db.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gdbserver/thread-db.c b/gdb/gdbserver/thread-db.c
index b0d1f0d..2185245 100644
--- a/gdb/gdbserver/thread-db.c
+++ b/gdb/gdbserver/thread-db.c
@@ -404,6 +404,9 @@ find_new_threads_callback (const td_thrhandle_t *th_p, void *data)
thread that previously exited and was joined. (glibc marks
terminated and joined threads with kernel thread ID -1. See
glibc PR17707. */
+ if (debug_threads)
+ debug_printf ("thread_db: skipping exited and "
+ "joined thread (0x%lx)\n", ti.ti_tid);
return 0;
}