mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Update.
1999-11-02 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Include sys/ucontext.h instead of duplicating definitions.
This commit is contained in:
@@ -28,12 +28,14 @@ td_thr_setfpregs (const td_thrhandle_t *th, const prfpregset_t *fpregs)
|
||||
|
||||
LOG (__FUNCTION__);
|
||||
|
||||
/* We have to get the PID for this thread. */
|
||||
/* We have to get the state and the PID for this thread. */
|
||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
||||
sizeof (struct _pthread_descr_struct)) != PS_OK)
|
||||
return TD_ERR;
|
||||
|
||||
if (ps_lsetfpregs (th->th_ta_p->ph, pds.p_pid, fpregs) != PS_OK)
|
||||
/* Only set the registers if the thread hasn't yet terminated. */
|
||||
if (pds.p_terminated == 0
|
||||
&& ps_lsetfpregs (th->th_ta_p->ph, pds.p_pid, fpregs) != PS_OK)
|
||||
return TD_ERR;
|
||||
|
||||
return TD_OK;
|
||||
|
||||
Reference in New Issue
Block a user