summaryrefslogtreecommitdiff
path: root/lib/libthread_db
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2006-02-07 02:12:33 +0000
committerDavid Xu <davidxu@FreeBSD.org>2006-02-07 02:12:33 +0000
commit4db106a906783a4496b1e5524efc71ea1a13a0fe (patch)
tree5da0744e089b04df1a3f6e6c7ee6a7aa46fafe46 /lib/libthread_db
parentf9d7b4d515bfca10488b1f222f048efec65152bd (diff)
Notes
Diffstat (limited to 'lib/libthread_db')
-rw-r--r--lib/libthread_db/libpthread_db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthread_db/libpthread_db.c b/lib/libthread_db/libpthread_db.c
index 5dfc1dd454cb..503d81d09a68 100644
--- a/lib/libthread_db/libpthread_db.c
+++ b/lib/libthread_db/libpthread_db.c
@@ -264,8 +264,8 @@ pt_ta_map_id2thr(const td_thragent_t *ta, thread_t id, td_thrhandle_t *th)
return (P2T(ret));
}
/* check lwp */
- ret = ptrace(PT_GETREGS, ta->map[id].lwp, (caddr_t)&gregs, 0);
- if (ret != 0) {
+ ret = ps_lgetregs(ta->ph, ta->map[id].lwp, gregs);
+ if (ret != PS_OK) {
/* no longer exists */
ta->map[id].type = PT_NONE;
return (TD_NOTHR);