mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Use ps_linfo to retrieve LWP info.
This commit is contained in:
parent
d56a014b6e
commit
6ff81bf532
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155413
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue