Lines Matching refs:dwfl
112 Dwfl *dwfl = process->dwfl; in __libdwfl_process_free() local
114 process->callbacks->detach (dwfl, process->callbacks_arg); in __libdwfl_process_free()
115 assert (dwfl->process == process); in __libdwfl_process_free()
116 dwfl->process = NULL; in __libdwfl_process_free()
120 dwfl->attacherr = DWFL_E_NOERROR; in __libdwfl_process_free()
125 process_alloc (Dwfl *dwfl) in process_alloc() argument
130 process->dwfl = dwfl; in process_alloc()
131 dwfl->process = process; in process_alloc()
135 dwfl_attach_state (Dwfl *dwfl, Elf *elf, pid_t pid, in dwfl_attach_state() argument
138 if (dwfl->process != NULL) in dwfl_attach_state()
145 dwfl->attacherr = DWFL_E_NOERROR; in dwfl_attach_state()
150 dwfl->attacherr = DWFL_E_INVALID_ARGUMENT; in dwfl_attach_state()
152 dwfl->attacherr = __libdwfl_canon_error (dwfl->attacherr); in dwfl_attach_state()
153 __libdwfl_seterrno (dwfl->attacherr); in dwfl_attach_state()
167 for (Dwfl_Module *mod = dwfl->modulelist; mod != NULL; mod = mod->next) in dwfl_attach_state()
192 dwfl->attacherr = DWFL_E_PROCESS_NO_ARCH; in dwfl_attach_state()
195 process_alloc (dwfl); in dwfl_attach_state()
196 Dwfl_Process *process = dwfl->process; in dwfl_attach_state()
201 dwfl->attacherr = DWFL_E_NOMEM; in dwfl_attach_state()
214 dwfl_pid (Dwfl *dwfl) in INTDEF()
216 if (dwfl->attacherr != DWFL_E_NOERROR) in INTDEF()
218 __libdwfl_seterrno (dwfl->attacherr); in INTDEF()
222 if (dwfl->process == NULL) in INTDEF()
227 return dwfl->process->pid; in INTDEF()
234 return thread->process->dwfl; in INTDEF()
253 dwfl_getthreads (Dwfl *dwfl, int (*callback) (Dwfl_Thread *thread, void *arg), in INTDEF()
256 if (dwfl->attacherr != DWFL_E_NOERROR) in INTDEF()
258 __libdwfl_seterrno (dwfl->attacherr); in INTDEF()
262 Dwfl_Process *process = dwfl->process; in INTDEF()
275 thread.tid = process->callbacks->next_thread (dwfl, in INTDEF()
329 getthread (Dwfl *dwfl, pid_t tid, in getthread() argument
333 if (dwfl->attacherr != DWFL_E_NOERROR) in getthread()
335 __libdwfl_seterrno (dwfl->attacherr); in getthread()
339 Dwfl_Process *process = dwfl->process; in getthread()
353 if (process->callbacks->get_thread (dwfl, tid, process->callbacks_arg, in getthread()
368 int err = INTUSE(dwfl_getthreads) (dwfl, get_one_thread_cb, &oa); in getthread()
397 dwfl_getthread_frames (Dwfl *dwfl, pid_t tid, in dwfl_getthread_frames() argument
402 return getthread (dwfl, tid, get_one_thread_frames_cb, &ot); in dwfl_getthread_frames()