MFC revisions 1.10, 1.11.

This commit is contained in:
davidxu 2006-05-17 02:37:41 +00:00
parent 6cbc4f7644
commit 1d9cc561ae

View File

@ -469,11 +469,13 @@ static td_err_e
pt_thr_get_info(const td_thrhandle_t *th, td_thrinfo_t *info)
{
const td_thragent_t *ta = th->th_ta;
struct ptrace_lwpinfo linfo;
int state;
int ret;
TDBG_FUNC();
bzero(info, sizeof(*info));
ret = pt_validate(th);
if (ret)
return (ret);
@ -495,6 +497,11 @@ pt_thr_get_info(const td_thrhandle_t *th, td_thrinfo_t *info)
info->ti_tid = th->th_tid;
info->ti_thread = th->th_thread;
info->ti_ta_p = th->th_ta;
ret = ps_linfo(ta->ph, th->th_tid, &linfo);
if (ret == PS_OK) {
info->ti_sigmask = linfo.pl_sigmask;
info->ti_pending = linfo.pl_siglist;
}
if (state == ta->thread_state_running)
info->ti_state = TD_THR_RUN;
else if (state == ta->thread_state_zoombie)