From cfd7cb2995948f23d5d0bc76f7692ed3070d1545 Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Fri, 14 Aug 1998 11:20:51 +0000 Subject: [PATCH] * sol-thread.c (lwp_to_thread): Fix error message for failing td_ta_map_lwp2thr call. (ps_lgetLDT): Mask off upper bits in GS register when comparing with selector. --- gdb/ChangeLog | 12 ++++++++++++ gdb/sol-thread.c | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ec366b7909b..0baf235fb96 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +Fri Aug 14 04:18:23 1998 Peter Schauer + + * sol-thread.c (lwp_to_thread): Fix error message for failing + td_ta_map_lwp2thr call. + (ps_lgetLDT): Mask off upper bits in GS register when comparing + with selector. + +Wed Aug 12 16:30:01 1998 Frank Ch. Eigler + + * remote-sim.c (simulator_command): Reset register cache after + simulator command. + Wed Aug 12 09:00:26 1998 Stu Grossman * expprint.c (dump_prefix/postfix_expression): Don't try to print type diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index d6062642eac..88836feae01 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -385,7 +385,7 @@ lwp_to_thread (lwp) if (val == TD_NOTHR) return -1; /* thread must have terminated */ else if (val != TD_OK) - error ("lwp_to_thread: td_thr_get_info: %s.", td_err_string (val)); + error ("lwp_to_thread: td_ta_map_lwp2thr: %s.", td_err_string (val)); val = p_td_thr_validate (&th); if (val == TD_NOTHR) @@ -1291,7 +1291,7 @@ ps_lgetLDT (const struct ps_prochandle *ph, lwpid_t lwpid, /* Search LDT for the LWP via register GS. */ for (i = 0; i < nldt; i++) { - if (ldt_bufp[i].sel == gregset[GS]) + if (ldt_bufp[i].sel == (gregset[GS] & 0xffff)) { *pldt = ldt_bufp[i]; return PS_OK; -- 2.30.2