diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1998-08-14 11:20:51 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1998-08-14 11:20:51 +0000 |
commit | cfd7cb2995948f23d5d0bc76f7692ed3070d1545 (patch) | |
tree | 7d4ed48ed9c81bf22f602477b5b67911442b184e /gdb/sol-thread.c | |
parent | fbb99e9a4d088ba23f56773ce9bcf2e82f711f97 (diff) | |
download | gdb-cfd7cb2995948f23d5d0bc76f7692ed3070d1545.zip gdb-cfd7cb2995948f23d5d0bc76f7692ed3070d1545.tar.gz gdb-cfd7cb2995948f23d5d0bc76f7692ed3070d1545.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/sol-thread.c')
-rw-r--r-- | gdb/sol-thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index d606264..88836fe 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; |