From 1b80b4f1c9ae11818ebc7f501048a39561776c3e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 29 Sep 2002 07:03:57 +0000 Subject: Update. --- linuxthreads_db/ChangeLog | 5 +++++ linuxthreads_db/td_thr_tsd.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/linuxthreads_db/ChangeLog b/linuxthreads_db/ChangeLog index ddeb9e3b81..a366d657c3 100644 --- a/linuxthreads_db/ChangeLog +++ b/linuxthreads_db/ChangeLog @@ -1,3 +1,8 @@ +2002-09-29 Ulrich Drepper + + * td_thr_tsd.c (td_thr_tsd): Read correct entry from pthread_keys + array. + 2002-09-28 Andreas Jaeger * td_thr_tls_get_addr.c (td_thr_tls_get_addr): Fix reference to dtv. diff --git a/linuxthreads_db/td_thr_tsd.c b/linuxthreads_db/td_thr_tsd.c index 95dec466c2..978dc5e524 100644 --- a/linuxthreads_db/td_thr_tsd.c +++ b/linuxthreads_db/td_thr_tsd.c @@ -51,7 +51,7 @@ td_thr_tsd (const td_thrhandle_t *th, const thread_key_t tk, void **data) return TD_BADKEY; /* Get the key entry. */ - if (ps_pdread (th->th_ta_p->ph, keys, &key, + if (ps_pdread (th->th_ta_p->ph, &keys[tk], &key, sizeof (struct pthread_key_struct)) != PS_OK) return TD_ERR; /* XXX Other error value? */ -- cgit 1.4.1