• Home
  • Raw
  • Download

Lines Matching full:thread

49 	Ebl *ebl = state->thread->process->ebl;  in state_fetch_pc()
76 Dwfl_Thread *thread = state->thread; in state_free() local
77 assert (thread->unwound == state); in state_free()
78 thread->unwound = state->unwound; in state_free()
83 thread_free_all_states (Dwfl_Thread *thread) in thread_free_all_states() argument
85 while (thread->unwound) in thread_free_all_states()
86 state_free (thread->unwound); in thread_free_all_states()
90 state_alloc (Dwfl_Thread *thread) in state_alloc() argument
92 assert (thread->unwound == NULL); in state_alloc()
93 Ebl *ebl = thread->process->ebl; in state_alloc()
101 state->thread = thread; in state_alloc()
106 thread->unwound = state; in state_alloc()
235 dwfl_thread_dwfl (Dwfl_Thread *thread) in INTDEF()
237 return thread->process->dwfl; in INTDEF()
242 dwfl_thread_tid (Dwfl_Thread *thread) in INTDEF()
244 return thread->tid; in INTDEF()
251 return state->thread; in INTDEF()
256 dwfl_getthreads (Dwfl *dwfl, int (*callback) (Dwfl_Thread *thread, void *arg), in INTDEF()
272 Dwfl_Thread thread; in INTDEF() local
273 thread.process = process; in INTDEF()
274 thread.unwound = NULL; in INTDEF()
275 thread.callbacks_arg = NULL; in INTDEF()
278 thread.tid = process->callbacks->next_thread (dwfl, in INTDEF()
280 &thread.callbacks_arg); in INTDEF()
281 if (thread.tid < 0) in INTDEF()
284 thread_free_all_states (&thread); in INTDEF()
288 if (thread.tid == 0) in INTDEF()
290 thread_free_all_states (&thread); in INTDEF()
294 int err = callback (&thread, arg); in INTDEF()
297 thread_free_all_states (&thread); in INTDEF()
300 assert (thread.unwound == NULL); in INTDEF()
310 int (*callback) (Dwfl_Thread *thread, void *arg);
316 get_one_thread_cb (Dwfl_Thread *thread, void *arg) in get_one_thread_cb() argument
319 if (! oa->seen && INTUSE(dwfl_thread_tid) (thread) == oa->tid) in get_one_thread_cb()
322 oa->ret = oa->callback (thread, oa->arg); in get_one_thread_cb()
333 int (*callback) (Dwfl_Thread *thread, void *arg), in getthread()
351 Dwfl_Thread thread; in getthread() local
352 thread.process = process; in getthread()
353 thread.unwound = NULL; in getthread()
354 thread.callbacks_arg = NULL; in getthread()
357 &thread.callbacks_arg)) in getthread()
360 thread.tid = tid; in getthread()
361 err = callback (&thread, arg); in getthread()
362 thread_free_all_states (&thread); in getthread()
393 get_one_thread_frames_cb (Dwfl_Thread *thread, void *arg) in get_one_thread_frames_cb() argument
396 return INTUSE(dwfl_thread_getframes) (thread, ot->callback, ot->arg); in get_one_thread_frames_cb()
410 dwfl_thread_getframes (Dwfl_Thread *thread, in INTDEF()
414 if (thread->unwound != NULL) in INTDEF()
420 Ebl *ebl = thread->process->ebl; in INTDEF()
426 if (state_alloc (thread) == NULL) in INTDEF()
431 Dwfl_Process *process = thread->process; in INTDEF()
432 if (! process->callbacks->set_initial_registers (thread, in INTDEF()
433 thread->callbacks_arg)) in INTDEF()
435 thread_free_all_states (thread); in INTDEF()
438 if (! state_fetch_pc (thread->unwound)) in INTDEF()
441 process->callbacks->thread_detach (thread, thread->callbacks_arg); in INTDEF()
442 thread_free_all_states (thread); in INTDEF()
449 state = thread->unwound; in INTDEF()
454 process->callbacks->thread_detach (thread, thread->callbacks_arg); in INTDEF()
455 thread_free_all_states (thread); in INTDEF()
460 state_free (thread->unwound); in INTDEF()
461 state = thread->unwound; in INTDEF()
467 process->callbacks->thread_detach (thread, thread->callbacks_arg); in INTDEF()
470 thread_free_all_states (thread); in INTDEF()
475 thread_free_all_states (thread); in INTDEF()