aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads_db/td_ta_thr_iter.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-12 23:11:22 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-12 23:11:22 +0000
commitf7a8a904b6ac4883f11d93a267dae6ebeda441b8 (patch)
tree5577a71911527dc515e18a54b11e1ca246cf7706 /linuxthreads_db/td_ta_thr_iter.c
parenta680290af821a9f18df184edb438685f86150ab6 (diff)
downloadglibc-f7a8a904b6ac4883f11d93a267dae6ebeda441b8.tar
glibc-f7a8a904b6ac4883f11d93a267dae6ebeda441b8.tar.gz
glibc-f7a8a904b6ac4883f11d93a267dae6ebeda441b8.tar.bz2
glibc-f7a8a904b6ac4883f11d93a267dae6ebeda441b8.zip
Update.
1999-11-12 Ulrich Drepper <drepper@cygnus.com> * charmaps/ISO-8859-13: Fix a few entries. Patch by Marius Gedminas <mgedmin@takas.lt>.
Diffstat (limited to 'linuxthreads_db/td_ta_thr_iter.c')
-rw-r--r--linuxthreads_db/td_ta_thr_iter.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/linuxthreads_db/td_ta_thr_iter.c b/linuxthreads_db/td_ta_thr_iter.c
index 8cb8c63427..5b316516d1 100644
--- a/linuxthreads_db/td_ta_thr_iter.c
+++ b/linuxthreads_db/td_ta_thr_iter.c
@@ -30,11 +30,6 @@ handle_descr (const td_thragent_t *ta, td_thr_iter_f *callback,
size_t sizeof_descr = ta->sizeof_descr;
td_thrhandle_t th;
-#ifdef ALL_THREADS_STOPPED
- /* First count this active thread. */
- --num;
-#endif
-
if (ps_pdread (ta->ph, descr, &pds, sizeof_descr) != PS_OK)
return TD_ERR; /* XXX Other error value? */
@@ -129,9 +124,14 @@ td_ta_thr_iter (const td_thragent_t *ta, td_thr_iter_f *callback,
#endif
/* Now get all descriptors, one after the other. */
- for (cnt = 0; cnt < pthread_threads_max && num > 0; ++cnt)
+ for (cnt = 2; cnt < pthread_threads_max && num > 0; ++cnt)
if (phc[cnt].h_descr != NULL)
{
+#ifdef ALL_THREADS_STOPPED
+ /* First count this active thread. */
+ --num;
+#endif
+
result = handle_descr (ta, callback, cbdata_p, state, ti_pri, cnt,
phc[cnt].h_descr);
if (result != TD_OK)