Lines Matching refs:thread
50 Ebl *ebl = state->thread->process->ebl;
86 state_alloc (Dwfl_Thread *thread)
88 assert (thread->unwound == NULL);
89 Ebl *ebl = thread->process->ebl;
97 state->thread = thread;
102 thread->unwound = state;
231 dwfl_thread_dwfl (Dwfl_Thread *thread)
233 return thread->process->dwfl;
238 dwfl_thread_tid (Dwfl_Thread *thread)
240 return thread->tid;
247 return state->thread;
252 dwfl_getthreads (Dwfl *dwfl, int (*callback) (Dwfl_Thread *thread, void *arg),
268 Dwfl_Thread thread;
269 thread.process = process;
270 thread.unwound = NULL;
271 thread.callbacks_arg = NULL;
274 thread.tid = process->callbacks->next_thread (dwfl,
276 &thread.callbacks_arg);
277 if (thread.tid < 0)
279 if (thread.tid == 0)
284 int err = callback (&thread, arg);
287 assert (thread.unwound == NULL);
297 int (*callback) (Dwfl_Thread *thread, void *arg);
303 get_one_thread_cb (Dwfl_Thread *thread, void *arg)
306 if (! oa->seen && INTUSE(dwfl_thread_tid) (thread) == oa->tid)
309 oa->ret = oa->callback (thread, oa->arg);
320 int (*callback) (Dwfl_Thread *thread, void *arg),
338 Dwfl_Thread thread;
339 thread.process = process;
340 thread.unwound = NULL;
341 thread.callbacks_arg = NULL;
344 &thread.callbacks_arg))
346 thread.tid = tid;
347 return callback (&thread, arg);
377 get_one_thread_frames_cb (Dwfl_Thread *thread, void *arg)
380 return INTUSE(dwfl_thread_getframes) (thread, ot->callback, ot->arg);
394 dwfl_thread_getframes (Dwfl_Thread *thread,
398 Ebl *ebl = thread->process->ebl;
404 if (state_alloc (thread) == NULL)
409 Dwfl_Process *process = thread->process;
410 if (! process->callbacks->set_initial_registers (thread,
411 thread->callbacks_arg))
413 free_states (thread->unwound);
414 thread->unwound = NULL;
417 Dwfl_Frame *state = thread->unwound;
418 thread->unwound = NULL;
422 process->callbacks->thread_detach (thread, thread->callbacks_arg);
432 process->callbacks->thread_detach (thread, thread->callbacks_arg);
446 process->callbacks->thread_detach (thread, thread->callbacks_arg);