summaryrefslogtreecommitdiffstats
path: root/lib/libthread_db/libpthread_db.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthread_db/libpthread_db.c')
-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