Lines Matching defs:core
73 static Elf *core = NULL;
493 error (EXIT_BAD, errno, N_("Cannot open core file '%s'"), arg);
495 core = elf_begin (core_fd, ELF_C_READ_MMAP, NULL);
496 if (core == NULL)
497 error (EXIT_BAD, 0, "core '%s' elf_begin: %s", arg, elf_errmsg(-1));
563 if (core == NULL && exec != NULL)
565 N_("-e EXEC needs a core given by --core."));
571 if ((pid == 0 && core == NULL) || (pid != 0 && core != NULL))
573 N_("One of -p PID or --core COREFILE should be given."));
590 if (core != NULL)
595 if (dwfl_core_file_report (dwfl, core, exec) < 0)
613 if (core != NULL)
615 if (dwfl_core_file_attach (dwfl, core) < 0)
646 { "core", OPT_COREFILE, "COREFILE", 0,
685 .doc = N_("Print a stack for each thread in a process or core file.\n\
700 pid != 0 ? "process" : "core");
733 pid != 0 ? "process" : "core");
749 if (core != NULL)
750 elf_end (core);