HomeFreeBSD

linux(4): fix ptrace(2) to properly handle orig_rax

Description

linux(4): fix ptrace(2) to properly handle orig_rax

This fixes strace(1) erroneously reporting return values
as "Function not implemented", combined with reporting the binary
ABI as X32.

Very similar code in linux_ptrace_getregs() is left as it is - it's
probably wrong too, but I don't have a way to test it.

Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D29927

(cherry picked from commit 023bff799098cac28732f2800c967f0248d2eb47)

Details

Provenance
traszAuthored on May 4 2021, 1:11 PM
Differential Revision
D29927: linux(4): fix ptrace(2) to properly handle orig_rax
Parents
rG1c8d9e1b05b0: pf: fix set_prio after nv conversion
Branches
Unknown
Tags
Unknown