Lines Matching refs:core
47 { "core", OPT_COREFILE, "COREFILE", 0,
71 /* We use this table for core files too. */
98 /* The --core parameter. */
99 const char *core;
159 _("only one of -e, -p, -k, -K, or --core allowed"));
217 /* Permit -e and --core together. */
220 opt->core = arg;
276 if (opt->core)
278 int fd = open (opt->core, O_RDONLY);
283 "cannot open '%s'", opt->core);
287 Elf *core;
288 Dwfl_Error error = __libdw_open_file (&fd, &core, true, false);
292 _("cannot read ELF core file: %s"),
297 int result = INTUSE(dwfl_core_file_report) (dwfl, core, opt->e);
300 elf_end (core);
302 return fail (dwfl, result, opt->core, state);
305 /* Non-fatal to not be able to attach to core, ignore error. */
306 INTUSE(dwfl_core_file_attach) (dwfl, core);
308 /* Store core Elf and fd in Dwfl to expose with dwfl_end. */
319 dwfl->user_core->core = core;
325 _("No modules recognized in core file"));