diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-12-04 23:42:21 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-12-04 23:42:21 +0000 |
commit | abbd6175b483bec001a425d11362e4824ecf6c7d (patch) | |
tree | cf7e3ad8da09d3c8d46ba1eae32d536d20b96916 /nptl_db/td_ta_thr_iter.c | |
parent | c4a6d859943d9f35bad48b82530fae2ff3a323e7 (diff) | |
download | glibc-abbd6175b483bec001a425d11362e4824ecf6c7d.tar.gz glibc-abbd6175b483bec001a425d11362e4824ecf6c7d.tar.xz glibc-abbd6175b483bec001a425d11362e4824ecf6c7d.zip |
Update.
2002-12-04 Ulrich Drepper <drepper@redhat.com> * td_ta_thr_iter.c (iterate_thread_list): At end of iteration read pointer to the next element from inferior.
Diffstat (limited to 'nptl_db/td_ta_thr_iter.c')
-rw-r--r-- | nptl_db/td_ta_thr_iter.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nptl_db/td_ta_thr_iter.c b/nptl_db/td_ta_thr_iter.c index ca1c82df6b..87fec01e8b 100644 --- a/nptl_db/td_ta_thr_iter.c +++ b/nptl_db/td_ta_thr_iter.c @@ -90,6 +90,11 @@ iterate_thread_list (const td_thragent_t *ta, td_thr_iter_f *callback, return TD_DBERR; } } + + /* Get the pointer to the next element. */ + if (ps_pdread (ta->ph, &((struct pthread *) addr)->header.data.list, + &list, sizeof (list_t)) != PS_OK) + return TD_ERR; /* XXX Other error value? */ } return result; |