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