• Home
  • Raw
  • Download

Lines Matching full:thread

46 	Ebl *ebl = state->thread->process->ebl;  in state_fetch_pc()
73 Dwfl_Thread *thread = state->thread; in state_free() local
74 assert (thread->unwound == state); in state_free()
75 thread->unwound = state->unwound; in state_free()
80 thread_free_all_states (Dwfl_Thread *thread) in thread_free_all_states() argument
82 while (thread->unwound) in thread_free_all_states()
83 state_free (thread->unwound); in thread_free_all_states()
87 state_alloc (Dwfl_Thread *thread) in state_alloc() argument
89 assert (thread->unwound == NULL); in state_alloc()
90 Ebl *ebl = thread->process->ebl; in state_alloc()
98 state->thread = thread; in state_alloc()
103 thread->unwound = state; in state_alloc()
232 dwfl_thread_dwfl (Dwfl_Thread *thread) in INTDEF()
234 return thread->process->dwfl; in INTDEF()
239 dwfl_thread_tid (Dwfl_Thread *thread) in INTDEF()
241 return thread->tid; in INTDEF()
248 return state->thread; in INTDEF()
253 dwfl_getthreads (Dwfl *dwfl, int (*callback) (Dwfl_Thread *thread, void *arg), in INTDEF()
269 Dwfl_Thread thread; in INTDEF() local
270 thread.process = process; in INTDEF()
271 thread.unwound = NULL; in INTDEF()
272 thread.callbacks_arg = NULL; in INTDEF()
275 thread.tid = process->callbacks->next_thread (dwfl, in INTDEF()
277 &thread.callbacks_arg); in INTDEF()
278 if (thread.tid < 0) in INTDEF()
281 thread_free_all_states (&thread); in INTDEF()
285 if (thread.tid == 0) in INTDEF()
287 thread_free_all_states (&thread); in INTDEF()
291 int err = callback (&thread, arg); in INTDEF()
294 thread_free_all_states (&thread); in INTDEF()
297 assert (thread.unwound == NULL); in INTDEF()
307 int (*callback) (Dwfl_Thread *thread, void *arg);
313 get_one_thread_cb (Dwfl_Thread *thread, void *arg) in get_one_thread_cb() argument
316 if (! oa->seen && INTUSE(dwfl_thread_tid) (thread) == oa->tid) in get_one_thread_cb()
319 oa->ret = oa->callback (thread, oa->arg); in get_one_thread_cb()
330 int (*callback) (Dwfl_Thread *thread, void *arg), in getthread()
348 Dwfl_Thread thread; in getthread() local
349 thread.process = process; in getthread()
350 thread.unwound = NULL; in getthread()
351 thread.callbacks_arg = NULL; in getthread()
354 &thread.callbacks_arg)) in getthread()
357 thread.tid = tid; in getthread()
358 err = callback (&thread, arg); in getthread()
359 thread_free_all_states (&thread); in getthread()
390 get_one_thread_frames_cb (Dwfl_Thread *thread, void *arg) in get_one_thread_frames_cb() argument
393 return INTUSE(dwfl_thread_getframes) (thread, ot->callback, ot->arg); in get_one_thread_frames_cb()
407 dwfl_thread_getframes (Dwfl_Thread *thread, in INTDEF()
411 if (thread->unwound != NULL) in INTDEF()
417 Ebl *ebl = thread->process->ebl; in INTDEF()
423 if (state_alloc (thread) == NULL) in INTDEF()
428 Dwfl_Process *process = thread->process; in INTDEF()
429 if (! process->callbacks->set_initial_registers (thread, in INTDEF()
430 thread->callbacks_arg)) in INTDEF()
432 thread_free_all_states (thread); in INTDEF()
435 if (! state_fetch_pc (thread->unwound)) in INTDEF()
438 process->callbacks->thread_detach (thread, thread->callbacks_arg); in INTDEF()
439 thread_free_all_states (thread); in INTDEF()
446 state = thread->unwound; in INTDEF()
451 process->callbacks->thread_detach (thread, thread->callbacks_arg); in INTDEF()
452 thread_free_all_states (thread); in INTDEF()
457 state_free (thread->unwound); in INTDEF()
458 state = thread->unwound; in INTDEF()
464 process->callbacks->thread_detach (thread, thread->callbacks_arg); in INTDEF()
467 thread_free_all_states (thread); in INTDEF()
472 thread_free_all_states (thread); in INTDEF()