Lines Matching refs:tip

324 	struct threadinfo *tip;  in thr_stack()  local
330 tip = malloc(sizeof (struct threadinfo)); in thr_stack()
331 tip->next = NULL; in thr_stack()
332 tip->threadid = thrinfo.ti_tid; in thr_stack()
333 tip->lwpid = thrinfo.ti_lid; in thr_stack()
334 tip->state = thrinfo.ti_state; in thr_stack()
335 tip->startfunc = thrinfo.ti_startfunc; in thr_stack()
336 tip->exitval = (uintptr_t)thrinfo.ti_exitval; in thr_stack()
340 ((error = td_thr_getgregs(Thp, tip->regs)) != TD_OK && in thr_stack()
342 (void) memset(tip->regs, 0, sizeof (prgregset_t)); in thr_stack()
345 thr_tail->next = tip; in thr_stack()
347 thr_head = tip; in thr_stack()
348 thr_tail = tip; in thr_stack()
356 struct threadinfo *tip = thr_head; in free_threadinfo() local
359 while (tip) { in free_threadinfo()
360 next = tip->next; in free_threadinfo()
361 free(tip); in free_threadinfo()
362 tip = next; in free_threadinfo()
374 struct threadinfo *tip; in find_thread() local
376 for (tip = thr_head; tip; tip = tip->next) { in find_thread()
377 if (lwpid == tip->lwpid) { in find_thread()
378 tip->lwpid = 0; in find_thread()
379 return (tip); in find_thread()
392 struct threadinfo *tip; in thread_call_stack() local
398 if ((tip = find_thread(pip->pr_lwpid)) == NULL) in thread_call_stack()
404 tlhead(tip->threadid, pip->pr_lwpid, lwpname); in thread_call_stack()
405 tip->threadid = 0; /* finish eliminating tid */ in thread_call_stack()
409 if (tip->state == TD_THR_ZOMBIE) in thread_call_stack()
410 print_zombie(h->proc, tip); in thread_call_stack()
413 (void) memcpy(lwpstatus.pr_reg, tip->regs, in thread_call_stack()
461 struct threadinfo *tip; in all_call_stacks() local
471 for (tip = thr_head; tip; tip = tip->next) { in all_call_stacks()
473 if (!proc_lwp_in_set(h->lwps, tip->lwpid)) in all_call_stacks()
474 tip->threadid = 0; in all_call_stacks()
476 if ((tid = tip->threadid) != 0) { in all_call_stacks()
477 (void) memcpy(lwpstatus.pr_reg, tip->regs, in all_call_stacks()
479 tlhead(tid, tip->lwpid, NULL); in all_call_stacks()
480 if (tip->state == TD_THR_ZOMBIE) in all_call_stacks()
481 print_zombie(Pr, tip); in all_call_stacks()
485 tip->threadid = 0; in all_call_stacks()
486 tip->lwpid = 0; in all_call_stacks()
656 print_zombie(struct ps_prochandle *Pr, struct threadinfo *tip) in print_zombie() argument
663 (void) sprintf(buff, "%.*lx", length, (long)tip->startfunc); in print_zombie()
665 if (Plookup_by_addr(Pr, tip->startfunc, in print_zombie()
669 start = tip->startfunc; in print_zombie()
671 if (start != tip->startfunc) /* doesn't happen? */ in print_zombie()
672 (void) printf("+%lx", (long)(tip->startfunc - start)); in print_zombie()
673 (void) printf(", exit value = 0x%.*lx\n", length, (long)tip->exitval); in print_zombie()