From fa9a4ff0ba0b66f544bcd69e6bd0929f0a7fc7ff Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 3 Dec 2002 02:50:58 +0000 Subject: * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both bits of RM are cleared. --- nptl_db/td_ta_map_lwp2thr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nptl_db/td_ta_map_lwp2thr.c') diff --git a/nptl_db/td_ta_map_lwp2thr.c b/nptl_db/td_ta_map_lwp2thr.c index 326b9ee92a..2097194837 100644 --- a/nptl_db/td_ta_map_lwp2thr.c +++ b/nptl_db/td_ta_map_lwp2thr.c @@ -20,6 +20,7 @@ #include "thread_dbP.h" #include +#include td_err_e @@ -31,8 +32,12 @@ td_ta_map_lwp2thr (const td_thragent_t *ta, lwpid_t lwpid, td_thrhandle_t *th) if (! ta_ok (ta)) return TD_BADTA; + prgregset_t regs; + if (ps_lgetregs (ta->ph, lwpid, regs) != PS_OK) + return TD_ERR; + /* Get the thread area for the addressed thread. */ - if (ps_get_thread_area (ta->ph, lwpid, TLS_GET_GS () >> 3, &th->th_unique) + if (ps_get_thread_area (ta->ph, lwpid, regs[GS] >> 3, &th->th_unique) != PS_OK) return TD_ERR; /* XXX Other error value? */ -- cgit 1.4.1