HomeFreeBSD

Stop single stepping in signal handers on arm64

Description

Stop single stepping in signal handers on arm64

We should clear the single step flag when entering a signal hander and
set it when returning. This fixes the ptrace__PT_STEP_with_signal test.

While here add support for userspace to set the single step bit as on
x86. This can be used by userspace for self tracing.

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34170

Details

Provenance
andrewAuthored on Jan 26 2022, 2:25 PM
Reviewer
kib
Differential Revision
D34170: Stop single stepping in signal handers on arm64
Parents
rG407391740865: strftime.3: Fix a typo and use St for standards
Branches
Unknown
Tags
Unknown