thr_to_lwpid
if (ps_lstop(ph_p, thr_to_lwpid(th_p)) != PS_OK)
if (ps_lcontinue(ph_p, thr_to_lwpid(th_p)) != PS_OK)
if (ps_lgetregs(ph_p, thr_to_lwpid(th_p), regset) != PS_OK)
if (ps_lsetregs(ph_p, thr_to_lwpid(th_p), regset) != PS_OK)
if (ps_lgetfpregs(ph_p, thr_to_lwpid(th_p), fpregset) != PS_OK)
if (ps_lsetfpregs(ph_p, thr_to_lwpid(th_p), fpregset) != PS_OK)
if (ps_lgetxregsize(ph_p, thr_to_lwpid(th_p), xregsize) != PS_OK)
ps_err = ps_lgetxregs(ph_p, thr_to_lwpid(th_p), (caddr_t)xregset);
if (ps_lsetxregs(ph_p, thr_to_lwpid(th_p), (caddr_t)xregset) != PS_OK)