]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Start copying list of descriptors from right position in target process.
authorUlrich Drepper <drepper@redhat.com>
Fri, 12 Nov 1999 23:26:24 +0000 (23:26 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 12 Nov 1999 23:26:24 +0000 (23:26 +0000)
linuxthreads_db/td_ta_thr_iter.c

index 5b316516d19c544b2a0788686ceff4beb51b6654..b5694119a4b0fba802dbd2e03196f1f8cdd8e3fa 100644 (file)
@@ -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?  */