about summary refs log tree commit diff
path: root/linuxthreads_db/td_ta_thr_iter.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads_db/td_ta_thr_iter.c')
-rw-r--r--linuxthreads_db/td_ta_thr_iter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxthreads_db/td_ta_thr_iter.c b/linuxthreads_db/td_ta_thr_iter.c
index 5b316516d1..b5694119a4 100644
--- a/linuxthreads_db/td_ta_thr_iter.c
+++ b/linuxthreads_db/td_ta_thr_iter.c
@@ -112,7 +112,7 @@ td_ta_thr_iter (const td_thragent_t *ta, td_thr_iter_f *callback,
     return result;
 
   /* Read all the descriptors.  */
-  if (ps_pdread (ta->ph, ta->handles, &phc[2],
+  if (ps_pdread (ta->ph, ta->handles + 2, &phc[2],
 		 (sizeof (struct pthread_handle_struct)
 		  * (pthread_threads_max - 2))) != PS_OK)
     return TD_ERR;	/* XXX Other error value?  */