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