summaryrefslogtreecommitdiffstats
path: root/lib/libthread_db
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-02-07 02:51:25 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-02-07 02:51:25 +0000
commit6cfb2f2fcea581eb5a02bea1cbb4070031f0e27e (patch)
tree2ed99a0f82ceb7deefdc0f4cae5bcbcda09ca3c8 /lib/libthread_db
parent23067f406ea4ee21380cffd950ae239575b43169 (diff)
downloadFreeBSD-src-6cfb2f2fcea581eb5a02bea1cbb4070031f0e27e.zip
FreeBSD-src-6cfb2f2fcea581eb5a02bea1cbb4070031f0e27e.tar.gz
Use ps_linfo to retrieve LWP info.
Diffstat (limited to 'lib/libthread_db')
-rw-r--r--lib/libthread_db/libpthread_db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthread_db/libpthread_db.c b/lib/libthread_db/libpthread_db.c
index 503d81d..5609f44 100644
--- a/lib/libthread_db/libpthread_db.c
+++ b/lib/libthread_db/libpthread_db.c
@@ -528,7 +528,7 @@ pt_dbsuspend(const td_thrhandle_t *th, int suspend)
} else {
struct ptrace_lwpinfo pl;
- if (ptrace(PT_LWPINFO, lwp, (caddr_t) &pl, sizeof(pl)))
+ if (ps_linfo(ta->ph, lwp, (caddr_t)&pl))
return (TD_ERR);
if (suspend) {
if (!(pl.pl_flags & PL_FLAG_BOUND))
OpenPOWER on IntegriCloud