Lines Matching refs:state
92 /* Structure held at state->HOOK. */
103 failure (Dwfl *dwfl, int errnum, const char *msg, struct argp_state *state)
108 argp_failure (state, EXIT_FAILURE, 0, "%s: %s",
111 argp_failure (state, EXIT_FAILURE, errnum, "%s", msg);
115 fail (Dwfl *dwfl, int errnum, const char *msg, struct argp_state *state)
117 failure (dwfl, errnum, msg, state);
122 parse_opt (int key, char *arg, struct argp_state *state)
128 assert (state->hook == NULL);
131 failure (NULL, DWFL_E_ERRNO, "calloc", state);
132 state->hook = opt;
142 struct parse_opt *opt = state->hook;
148 return fail (dwfl, -1, arg, state);
158 argp_error (state, "%s",
168 struct parse_opt *opt = state->hook;
174 return fail (dwfl, result, arg, state);
188 struct parse_opt *opt = state->hook;
195 argp_failure (state, EXIT_FAILURE, code,
203 return fail (dwfl, result, arg, state);
213 struct parse_opt *opt = state->hook;
226 struct parse_opt *opt = state->hook;
232 return fail (dwfl, result, _("cannot load kernel symbols"), state);
236 argp_failure (state, 0, result, _("cannot find kernel modules"));
246 struct parse_opt *opt = state->hook;
253 return fail (dwfl, result, _("cannot find kernel or modules"), state);
263 struct parse_opt *opt = state->hook;
272 return fail (dwfl, -1, arg, state);
282 argp_failure (state, EXIT_FAILURE, code,
291 argp_failure (state, EXIT_FAILURE, 0,
302 return fail (dwfl, result, opt->core, state);
314 argp_failure (state, EXIT_FAILURE, 0,
324 argp_failure (state, EXIT_FAILURE, 0,
332 return fail (dwfl, -1, opt->e, state);
341 return fail (dwfl, -1, arg, state);
345 *(Dwfl **) state->input = dwfl;
347 state->hook = NULL;
353 struct parse_opt *opt = state->hook;
356 state->hook = NULL;
365 struct parse_opt *opt = state->hook;
367 *(Dwfl **) state->input = opt->dwfl;