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
Unknown Object (File)
Fri, Sep 11, 5:55 PM
Unknown Object (File)
Fri, Sep 11, 3:29 AM
Unknown Object (File)
Thu, Sep 10, 9:33 PM
Unknown Object (File)
Thu, Sep 10, 10:01 AM
Unknown Object (File)
Thu, Sep 10, 9:30 AM
Unknown Object (File)
Wed, Sep 9, 1:01 AM
Unknown Object (File)
Sun, Sep 6, 2:05 AM
Unknown Object (File)
Sat, Sep 5, 12:23 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44662
Build 41550: arc lint + arc unit

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.