From: Ulrich Drepper Date: Mon, 10 Mar 2003 18:59:25 +0000 (+0000) Subject: Update for TC change. X-Git-Tag: cvs/glibc-2_3_3~1309 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f39f0b9397ee5788653af80101ec15d01d2b0b2f;p=thirdparty%2Fglibc.git Update for TC change. --- diff --git a/nptl_db/td_ta_thr_iter.c b/nptl_db/td_ta_thr_iter.c index b52e1cd8905..37f32f6dc72 100644 --- a/nptl_db/td_ta_thr_iter.c +++ b/nptl_db/td_ta_thr_iter.c @@ -51,7 +51,7 @@ iterate_thread_list (const td_thragent_t *ta, td_thr_iter_f *callback, while (list.next != head) { psaddr_t addr = ((psaddr_t) list.next - - offsetof (struct pthread, header.data.list)); + - offsetof (struct pthread, list)); int schedpolicy; if (ps_pdread (ta->ph, &((struct pthread *) addr)->schedpolicy, @@ -102,7 +102,7 @@ iterate_thread_list (const td_thragent_t *ta, td_thr_iter_f *callback, } /* Get the pointer to the next element. */ - if (ps_pdread (ta->ph, &((struct pthread *) addr)->header.data.list, + if (ps_pdread (ta->ph, &((struct pthread *) addr)->list, &list, sizeof (list_t)) != PS_OK) return TD_ERR; /* XXX Other error value? */ } diff --git a/nptl_db/td_thr_tls_get_addr.c b/nptl_db/td_thr_tls_get_addr.c index 5bbdc50c3f3..1c4aab47153 100644 --- a/nptl_db/td_thr_tls_get_addr.c +++ b/nptl_db/td_thr_tls_get_addr.c @@ -1,5 +1,5 @@ /* Get address of thread local variable. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 2002. @@ -39,8 +39,7 @@ td_thr_tls_get_addr (const td_thrhandle_t *th __attribute__ ((unused)), LOG ("td_thr_tls_get_addr"); /* Get the DTV pointer from the thread descriptor. */ - if (ps_pdread (th->th_ta_p->ph, - &((struct pthread *) th->th_unique)->header.data.dtvp, + if (ps_pdread (th->th_ta_p->ph, &((struct pthread *) th->th_unique)->dtv, &dtvp, sizeof dtvp) != PS_OK) return TD_ERR; /* XXX Other error value? */ diff --git a/nptl_db/td_thr_validate.c b/nptl_db/td_thr_validate.c index 76cbad31cfc..28fec6a00ea 100644 --- a/nptl_db/td_thr_validate.c +++ b/nptl_db/td_thr_validate.c @@ -1,5 +1,5 @@ /* Validate a thread handle. - Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1999. @@ -32,7 +32,7 @@ check_thread_list (const td_thrhandle_t *th, psaddr_t head) return TD_ERR; /* XXX Other error value? */ while (list.next != head) - if ((psaddr_t) list.next - offsetof (struct pthread, header.data.list) + if ((psaddr_t) list.next - offsetof (struct pthread, list) == th->th_unique) { result = TD_OK;