Lines Matching refs:tip

318 	struct threadinfo *tip;
324 tip = malloc(sizeof (struct threadinfo));
325 tip->next = NULL;
326 tip->threadid = thrinfo.ti_tid;
327 tip->lwpid = thrinfo.ti_lid;
328 tip->state = thrinfo.ti_state;
329 tip->startfunc = thrinfo.ti_startfunc;
330 tip->exitval = (uintptr_t)thrinfo.ti_exitval;
334 ((error = td_thr_getgregs(Thp, tip->regs)) != TD_OK &&
336 (void) memset(tip->regs, 0, sizeof (prgregset_t));
339 thr_tail->next = tip;
341 thr_head = tip;
342 thr_tail = tip;
350 struct threadinfo *tip = thr_head;
353 while (tip) {
354 next = tip->next;
355 free(tip);
356 tip = next;
368 struct threadinfo *tip;
370 for (tip = thr_head; tip; tip = tip->next) {
371 if (lwpid == tip->lwpid) {
372 tip->lwpid = 0;
373 return (tip);
385 struct threadinfo *tip;
391 if ((tip = find_thread(pip->pr_lwpid)) == NULL)
394 tlhead(tip->threadid, pip->pr_lwpid);
395 tip->threadid = 0; /* finish eliminating tid */
399 if (tip->state == TD_THR_ZOMBIE)
400 print_zombie(h->proc, tip);
403 (void) memcpy(lwpstatus.pr_reg, tip->regs,
447 struct threadinfo *tip;
457 for (tip = thr_head; tip; tip = tip->next) {
459 if (!proc_lwp_in_set(h->lwps, tip->lwpid))
460 tip->threadid = 0;
462 if ((tid = tip->threadid) != 0) {
463 (void) memcpy(lwpstatus.pr_reg, tip->regs,
465 tlhead(tid, tip->lwpid);
466 if (tip->state == TD_THR_ZOMBIE)
467 print_zombie(Pr, tip);
471 tip->threadid = 0;
472 tip->lwpid = 0;
612 print_zombie(struct ps_prochandle *Pr, struct threadinfo *tip)
619 (void) sprintf(buff, "%.*lx", length, (long)tip->startfunc);
621 if (Plookup_by_addr(Pr, tip->startfunc,
625 start = tip->startfunc;
627 if (start != tip->startfunc) /* doesn't happen? */
628 (void) printf("+%lx", (long)(tip->startfunc - start));
629 (void) printf(", exit value = 0x%.*lx\n", length, (long)tip->exitval);