]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 4 Dec 2002 23:42:21 +0000 (23:42 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 4 Dec 2002 23:42:21 +0000 (23:42 +0000)
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.

argp/tst-argp1.c
nptl_db/ChangeLog
nptl_db/td_ta_thr_iter.c

index 7f29ff2e7dcc199d7d4e841da0db451cc22d215d..c72185e15db8e22903623316d47ecac0d4f86831 100644 (file)
@@ -97,7 +97,7 @@ int
 main (void)
 {
   int argc = 2;
-  char *argv[3] = { "tst-argp1", "--help", NULL };
+  char *argv[3] = { (char *) "tst-argp1", (char *) "--help", NULL };
   int remaining;
 
   /* Parse and process arguments.  */
index 5d3fd84a0b041f78b4bb1920111f133856eaf39c..2520fe3c66807b09f8bb6b8da22c8c97fd197d9b 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2002-12-02  Roland McGrath  <roland@redhat.com>
 
        * td_symbol_list.c (symbol_list_arr): pthread_keys -> __pthread_keys
index ca1c82df6b2007545541e61210dc21e3116c2d60..87fec01e8b3951549166f1e7debdb022d0214398 100644 (file)
@@ -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;
This page took 0.03967 seconds and 5 git commands to generate.