Lines Matching refs:dwfl

96   Dwfl *dwfl;  member
106 inline void failure (Dwfl *dwfl, int errnum, const char *msg) in parse_opt()
108 if (dwfl != NULL) in parse_opt()
109 dwfl_end (dwfl); in parse_opt()
116 inline error_t fail (Dwfl *dwfl, int errnum, const char *msg) in parse_opt()
118 failure (dwfl, errnum, msg); in parse_opt()
141 Dwfl *dwfl = opt->dwfl; in parse_opt() local
142 if (dwfl == NULL) in parse_opt()
144 dwfl = INTUSE(dwfl_begin) (&offline_callbacks); in parse_opt()
145 if (dwfl == NULL) in parse_opt()
146 return fail (dwfl, -1, arg); in parse_opt()
147 opt->dwfl = dwfl; in parse_opt()
151 dwfl->offline_next_address = 0; in parse_opt()
153 if (dwfl->callbacks != &offline_callbacks) in parse_opt()
167 if (opt->dwfl == NULL) in parse_opt()
169 Dwfl *dwfl = INTUSE(dwfl_begin) (&proc_callbacks); in parse_opt() local
170 int result = INTUSE(dwfl_linux_proc_report) (dwfl, atoi (arg)); in parse_opt()
172 return fail (dwfl, result, arg); in parse_opt()
175 INTUSE(dwfl_linux_proc_attach) (dwfl, atoi (arg), false); in parse_opt()
177 opt->dwfl = dwfl; in parse_opt()
187 if (opt->dwfl == NULL) in parse_opt()
197 Dwfl *dwfl = INTUSE(dwfl_begin) (&proc_callbacks); in parse_opt() local
198 int result = INTUSE(dwfl_linux_proc_maps_report) (dwfl, f); in parse_opt()
201 return fail (dwfl, result, arg); in parse_opt()
202 opt->dwfl = dwfl; in parse_opt()
212 Dwfl *dwfl = opt->dwfl; in parse_opt() local
213 if (dwfl == NULL) in parse_opt()
214 opt->dwfl = dwfl = INTUSE(dwfl_begin) (&offline_callbacks); in parse_opt()
216 else if (dwfl->callbacks != &offline_callbacks) in parse_opt()
225 if (opt->dwfl == NULL) in parse_opt()
227 Dwfl *dwfl = INTUSE(dwfl_begin) (&kernel_callbacks); in parse_opt() local
228 int result = INTUSE(dwfl_linux_kernel_report_kernel) (dwfl); in parse_opt()
230 return fail (dwfl, result, _("cannot load kernel symbols")); in parse_opt()
231 result = INTUSE(dwfl_linux_kernel_report_modules) (dwfl); in parse_opt()
234 failure (dwfl, result, _("cannot find kernel modules")); in parse_opt()
235 opt->dwfl = dwfl; in parse_opt()
245 if (opt->dwfl == NULL) in parse_opt()
247 Dwfl *dwfl = INTUSE(dwfl_begin) (&offline_callbacks); in parse_opt() local
248 int result = INTUSE(dwfl_linux_kernel_report_offline) (dwfl, arg, in parse_opt()
251 return fail (dwfl, result, _("cannot find kernel or modules")); in parse_opt()
252 opt->dwfl = dwfl; in parse_opt()
262 Dwfl *dwfl = opt->dwfl; in parse_opt() local
264 if (dwfl == NULL) in parse_opt()
268 dwfl = INTUSE(dwfl_begin) (&offline_callbacks); in parse_opt()
269 if (INTUSE(dwfl_report_offline) (dwfl, "", arg, -1) == NULL) in parse_opt()
270 return fail (dwfl, -1, arg); in parse_opt()
271 opt->dwfl = dwfl; in parse_opt()
295 int result = INTUSE(dwfl_core_file_report) (dwfl, core, opt->e); in parse_opt()
300 return fail (dwfl, result, opt->core); in parse_opt()
304 INTUSE(dwfl_core_file_attach) (dwfl, core); in parse_opt()
307 if (dwfl->user_core == NULL) in parse_opt()
309 dwfl->user_core = calloc (1, sizeof (struct Dwfl_User_Core)); in parse_opt()
310 if (dwfl->user_core == NULL) in parse_opt()
317 dwfl->user_core->core = core; in parse_opt()
318 dwfl->user_core->fd = fd; in parse_opt()
329 if (INTUSE(dwfl_report_offline) (dwfl, "", opt->e, -1) == NULL) in parse_opt()
330 return fail (dwfl, -1, opt->e); in parse_opt()
337 int result = INTUSE(dwfl_report_end) (dwfl, NULL, NULL); in parse_opt()
342 *(Dwfl **) state->input = dwfl; in parse_opt()
351 dwfl_end (opt->dwfl); in parse_opt()
364 *(Dwfl **) state->input = opt->dwfl; in parse_opt()