HomeFreeBSD

linux: Add additional ptracestop only if the debugger is Linux

Description

linux: Add additional ptracestop only if the debugger is Linux

In 6e66030c4c0, additional ptracestop was added in order
to implement PTRACE_EVENT_EXEC. Make it only apply to cases
where the debugger is a Linux processes; native FreeBSD
debuggers can trace Linux processes too, but they don't
expect that additonal ptracestop.

Fixes: 6e66030c4c0
Reported By: kib
Reviewed By: kib
Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D32726

Details

Provenance
traszAuthored on Oct 30 2021, 8:53 AM
Reviewer
kib
Differential Revision
D32726: linux: Add additional ptracestop only if the debugger is Linux
Parents
rG20f8331aca89: usr.bin/stat: honour locale for "-t %+"
Branches
Unknown
Tags
Unknown