Home | History | Annotate | Download | only in libdwfl

Lines Matching defs:dwfl

117   inline void failure (Dwfl *dwfl, int errnum, const char *msg)
119 if (dwfl != NULL)
120 dwfl_end (dwfl);
127 inline error_t fail (Dwfl *dwfl, int errnum, const char *msg)
129 failure (dwfl, errnum, msg);
141 Dwfl *dwfl = state->hook;
142 if (dwfl == NULL)
144 dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
145 if (dwfl == NULL)
146 return fail (dwfl, -1, arg);
147 state->hook = dwfl;
151 dwfl->offline_next_address = 0;
153 if (dwfl->callbacks == &offline_callbacks)
155 if (INTUSE(dwfl_report_offline) (dwfl, "", arg, -1) == NULL)
156 return fail (dwfl, -1, arg);
157 state->hook = dwfl;
172 Dwfl *dwfl = INTUSE(dwfl_begin) (&proc_callbacks);
173 int result = INTUSE(dwfl_linux_proc_report) (dwfl, atoi (arg));
175 return fail (dwfl, result, arg);
176 state->hook = dwfl;
194 Dwfl *dwfl = INTUSE(dwfl_begin) (&proc_callbacks);
195 int result = INTUSE(dwfl_linux_proc_maps_report) (dwfl, f);
198 return fail (dwfl, result, arg);
199 state->hook = dwfl;
207 Dwfl *dwfl = state->hook;
208 if (dwfl == NULL)
209 state->hook = dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
211 else if (dwfl->callbacks != &offline_callbacks)
229 int result = INTUSE(dwfl_core_file_report) (dwfl, core,
235 return fail (dwfl, result, arg);
252 Dwfl *dwfl = INTUSE(dwfl_begin) (&kernel_callbacks);
253 int result = INTUSE(dwfl_linux_kernel_report_kernel) (dwfl);
255 return fail (dwfl, result, _("cannot load kernel symbols"));
256 result = INTUSE(dwfl_linux_kernel_report_modules) (dwfl);
259 failure (dwfl, result, _("cannot find kernel modules"));
260 state->hook = dwfl;
269 Dwfl *dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
270 int result = INTUSE(dwfl_linux_kernel_report_offline) (dwfl, arg,
273 return fail (dwfl, result, _("cannot find kernel or modules"));
274 state->hook = dwfl;
282 Dwfl *dwfl = state->hook;
284 if (dwfl == NULL)
288 dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
289 if (INTUSE(dwfl_report_offline) (dwfl, "", arg, -1) == NULL)
290 return fail (dwfl, -1, arg);
291 state->hook = dwfl;
295 if we got here. Tie up the Dwfl and return it to the caller of
298 int result = INTUSE(dwfl_report_end) (dwfl, NULL, NULL);
313 *(Dwfl **) state->input = state->hook;