HomeFreeBSD

Refactor core dumping code a bit

Description

Refactor core dumping code a bit

This makes it possible to use core_write(), core_output(),
and sbuf_drain_core_output(), in Linux coredump code. Moving
them out of imgact_elf.c is necessary because of the weird way
it's being built.

Reviewed By: kib
Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D30369

(cherry picked from commit 33621dfc196e317026aa8b9d916567598a1cedcb)

Details

Provenance
traszAuthored on May 22 2021, 8:58 AM
jhbCommitted on May 12 2022, 10:12 PM
Reviewer
kib
Differential Revision
D30369: Refactor core dumping code a bit
Parents
rG0f5085e8d253: mips: Add sv_onexec_old and sv_onexit for COMPAT_FREEBSD32.
Branches
Unknown
Tags
Unknown