HomeFreeBSD

gcore: add option to dump core using kernel facility

Description

gcore: add option to dump core using kernel facility

-k switch causes gcore to use ptrace(PT_COREDUMP) instead of manually
reading process memory and constructing the core.

Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D29955

Details

Provenance
kibAuthored on Apr 24 2021, 11:20 AM
Reviewer
markj
Differential Revision
D29955: ptrace(PT_COREDUMP)
Parents
rGc192228b7398: gcore: split code to open core file into helper
Branches
Unknown
Tags
Unknown