libthread_db: attaching to terminated/joined threads, debug output
[deliverable/binutils-gdb.git] / gdb / gdbserver / thread-db.c
index b0d1f0d945a4b38532cda1c5e152637c7e164e14..2185245289a38743950993999d3fd9ed6812cb80 100644 (file)
@@ -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;
     }
 
This page took 0.024371 seconds and 4 git commands to generate.