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