diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-08-25 09:06:06 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-08-25 09:06:06 +0000 |
commit | 395412a0e862bba722a71de7a41e8325b567d09a (patch) | |
tree | d3f3b92060e9ef87460508974a0c7ec3d49919a8 /linuxthreads_db/td_thr_getfpregs.c | |
parent | 089d05d5c2271fe619f5967e01c97d169b165947 (diff) | |
download | glibc-395412a0e862bba722a71de7a41e8325b567d09a.tar.gz glibc-395412a0e862bba722a71de7a41e8325b567d09a.tar.xz glibc-395412a0e862bba722a71de7a41e8325b567d09a.zip |
Update.
2003-08-25 Ulrich Drepper <drepper@redhat.com> * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
Diffstat (limited to 'linuxthreads_db/td_thr_getfpregs.c')
-rw-r--r-- | linuxthreads_db/td_thr_getfpregs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/linuxthreads_db/td_thr_getfpregs.c b/linuxthreads_db/td_thr_getfpregs.c index ea02760c93..31c55c8765 100644 --- a/linuxthreads_db/td_thr_getfpregs.c +++ b/linuxthreads_db/td_thr_getfpregs.c @@ -1,5 +1,5 @@ /* Get a thread's floating-point register set. - Copyright (C) 1999, 2001 Free Software Foundation, Inc. + Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999. @@ -30,7 +30,10 @@ td_thr_getfpregs (const td_thrhandle_t *th, prfpregset_t *regset) if (th->th_unique == NULL) { - memset (regset, '\0', sizeof (*regset)); + /* No data yet. Use the main thread. */ + pid_t pid = ps_getpid (th->th_ta_p->ph); + if (ps_lgetfpregs (th->th_ta_p->ph, pid, regset) != PS_OK) + return TD_ERR; return TD_OK; } |