Lines Matching refs:dwfl
111 Dwfl *dwfl = process->dwfl; in __libdwfl_process_free() local
113 process->callbacks->detach (dwfl, process->callbacks_arg); in __libdwfl_process_free()
114 assert (dwfl->process == process); in __libdwfl_process_free()
115 dwfl->process = NULL; in __libdwfl_process_free()
119 dwfl->attacherr = DWFL_E_NOERROR; in __libdwfl_process_free()
124 process_alloc (Dwfl *dwfl) in process_alloc() argument
129 process->dwfl = dwfl; in process_alloc()
130 dwfl->process = process; in process_alloc()
134 dwfl_attach_state (Dwfl *dwfl, Elf *elf, pid_t pid, in dwfl_attach_state() argument
137 if (dwfl->process != NULL) in dwfl_attach_state()
144 dwfl->attacherr = DWFL_E_NOERROR; in dwfl_attach_state()
149 dwfl->attacherr = DWFL_E_INVALID_ARGUMENT; in dwfl_attach_state()
151 dwfl->attacherr = __libdwfl_canon_error (dwfl->attacherr); in dwfl_attach_state()
152 __libdwfl_seterrno (dwfl->attacherr); in dwfl_attach_state()
166 for (Dwfl_Module *mod = dwfl->modulelist; mod != NULL; mod = mod->next) in dwfl_attach_state()
191 dwfl->attacherr = DWFL_E_PROCESS_NO_ARCH; in dwfl_attach_state()
194 process_alloc (dwfl); in dwfl_attach_state()
195 Dwfl_Process *process = dwfl->process; in dwfl_attach_state()
200 dwfl->attacherr = DWFL_E_NOMEM; in dwfl_attach_state()
213 dwfl_pid (Dwfl *dwfl) in INTDEF()
215 if (dwfl->attacherr != DWFL_E_NOERROR) in INTDEF()
217 __libdwfl_seterrno (dwfl->attacherr); in INTDEF()
221 if (dwfl->process == NULL) in INTDEF()
226 return dwfl->process->pid; in INTDEF()
233 return thread->process->dwfl; in INTDEF()
252 dwfl_getthreads (Dwfl *dwfl, int (*callback) (Dwfl_Thread *thread, void *arg), in INTDEF()
255 if (dwfl->attacherr != DWFL_E_NOERROR) in INTDEF()
257 __libdwfl_seterrno (dwfl->attacherr); in INTDEF()
261 Dwfl_Process *process = dwfl->process; in INTDEF()
274 thread.tid = process->callbacks->next_thread (dwfl, in INTDEF()
319 getthread (Dwfl *dwfl, pid_t tid, in getthread() argument
323 if (dwfl->attacherr != DWFL_E_NOERROR) in getthread()
325 __libdwfl_seterrno (dwfl->attacherr); in getthread()
329 Dwfl_Process *process = dwfl->process; in getthread()
343 if (process->callbacks->get_thread (dwfl, tid, process->callbacks_arg, in getthread()
355 int err = INTUSE(dwfl_getthreads) (dwfl, get_one_thread_cb, &oa); in getthread()
384 dwfl_getthread_frames (Dwfl *dwfl, pid_t tid, in dwfl_getthread_frames() argument
389 return getthread (dwfl, tid, get_one_thread_frames_cb, &ot); in dwfl_getthread_frames()