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

(cherry picked from commit 31cf95cec738bdb51a652689e2f829addc3b984b)

Details

Provenance
andrewAuthored on Jan 26 2022, 2:25 PM
Reviewer
kib
Differential Revision
D34170: Stop single stepping in signal handers on arm64
Parents
rG4b8f747b9d31: Fix the signal code on 32-bit breakpoints on arm64
Branches
Unknown
Tags
Unknown