Lines Matching refs:thread
56 error_t fetch_user_thread (task_t task, thread_t *thread) in ptrace()
65 *thread = threads[0]; /* Assume user thread is first. */ in ptrace()
79 thread_t thread; in ptrace() local
82 err = fetch_user_thread (task, &thread); in ptrace()
85 err = __thread_get_state (thread, flavor, addr, &count); in ptrace()
86 __mach_port_deallocate (__mach_task_self (), thread); in ptrace()
119 thread_t thread; in ptrace() local
120 err = fetch_user_thread (task, &thread); in ptrace()
125 err = __thread_get_state (thread, in ptrace()
131 err = __thread_set_state (thread, in ptrace()
137 __mach_port_deallocate (__mach_task_self (), thread); in ptrace()