Page MenuHomeFreeBSD

gcore: Use PT_GETREGSET to fetch NT_PRSTATUS and NT_FPREGSET.
ClosedPublic

Authored by jhb on Mar 4 2022, 10:58 PM.
Tags
None
Referenced Files
F170158643: D34447.diff
Thu, Sep 3, 4:52 PM
Unknown Object (File)
Thu, Sep 3, 1:46 AM
Unknown Object (File)
Thu, Sep 3, 12:14 AM
Unknown Object (File)
Wed, Sep 2, 11:22 PM
Unknown Object (File)
Wed, Sep 2, 10:43 PM
Unknown Object (File)
Tue, Sep 1, 1:45 AM
Unknown Object (File)
Mon, Aug 31, 11:28 PM
Unknown Object (File)
Sun, Aug 30, 8:50 PM
Subscribers

Details

Summary

Add a elf_putregnote() helper to build the ELF note for a register
set. Once nice result of this approach is that this reuses the
kernel's support for generating 32-bit register sets for 32-bit
processes avoiding the need to duplicate that logic in elf32core.c.

Sponsored by: University of Cambridge, Google, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Mar 4 2022, 10:58 PM

I've tested this on 32-bit arm. I will test on amd64 before committing to ensure it DTRT for both amd64 and i386 processes.

This revision is now accepted and ready to land.Mar 7 2022, 6:23 PM

Tested on amd64 for both i386 and amd64 processes.