HomeFreeBSD

Store core dump notes for all valid register sets for FreeBSD processes.

Description

Store core dump notes for all valid register sets for FreeBSD processes.

In particular, use a generic wrapper around struct regset rather than
requiring per-regset helpers. This helper replaces the MI
elfN(note_prstatus) and elfN(note_fpregset) helpers. It also
removes the need to explicitly dump NT_ARM_ADDR_MASK in the arm64
__elfN(dump_thread).

Reviewed by: markj, emaste
Sponsored by: University of Cambridge, Google, Inc.
Differential Revision: https://reviews.freebsd.org/D34446

(cherry picked from commit 6b71405bfe8dc76834603f8f9e48346c3f49eae0)

Note that this does not remove NT_ARM_ADDR_MASK from the arm64 hook
on stable/13 as NT_ARM_ADDR_MASK is not present in stable/13.

Details

Provenance
jhbAuthored on Mar 10 2022, 11:40 PM
Reviewer
markj
Differential Revision
D34446: Store core dump notes for all valid register sets for FreeBSD processes.
Parents
rG17cb4e662e17: elf: Avoid dumping uninitialized bytes in PRSTATUS core dump notes
Branches
Unknown
Tags
Unknown