summaryrefslogtreecommitdiff
path: root/lib/libthread_db
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2006-02-07 02:51:25 +0000
committerDavid Xu <davidxu@FreeBSD.org>2006-02-07 02:51:25 +0000
commit6ff81bf532c1d1b5b89baa27700317f90130120f (patch)
tree2ed99a0f82ceb7deefdc0f4cae5bcbcda09ca3c8 /lib/libthread_db
parentd56a014b6e3794e617dc3f2405227fe4727afb9f (diff)
Notes
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 503d81d09a68..5609f4483b1e 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))