From f6367df2fd032db89e68e28333d995fb18ffa653 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 15 Oct 1999 00:38:31 +0000 Subject: Update. 1999-10-14 Ulrich Drepper * manager.c (pthread_handle_create): Remove p_startfct initialization. * internals.h (_pthread_descr_struct): We don't need p_startfct field. --- linuxthreads_db/td_ta_thr_iter.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'linuxthreads_db/td_ta_thr_iter.c') diff --git a/linuxthreads_db/td_ta_thr_iter.c b/linuxthreads_db/td_ta_thr_iter.c index 678dd7f01b..f9b5673ebf 100644 --- a/linuxthreads_db/td_ta_thr_iter.c +++ b/linuxthreads_db/td_ta_thr_iter.c @@ -66,9 +66,15 @@ td_ta_thr_iter (const td_thragent_t *ta, td_thr_iter_f *callback, /* Test the state. XXX This is incomplete. */ - if (state != TD_THR_ANY_STATE - && (state != TD_THR_ZOMBIE || pds.p_exited == 0) - && (state != TD_THR_RUN || pds.p_exited != 0)) + if (state != TD_THR_ANY_STATE) + continue; + + /* XXX For now we ignore threads which are not running anymore. + The reason is that gdb tries to get the registers and fails. + In future we should have a special mode of the thread library + in which we keep the process around until the actual join + operation happened. */ + if (pds.p_exited != 0) continue; /* Yep, it matches. Call the callback function. */ -- cgit v1.2.3