HomeFreeBSD

arm: Unbreak debugging programs that use FP instructions

Description

arm: Unbreak debugging programs that use FP instructions

Contrary to arm64, on armv7 get_vfpcontext/set_vfpcontext can be called
from cpu_ptrace. This can be triggered when gdb hits a breakpoint
in a userspace program.
Relax td == currthread assertion to account for that situation.
While here update an outdated comment in vfp_discard.

Reported by: Mark Millard <marklmi@yahoo.com>
Tested by: Mark Millard <marklmi@yahoo.com>
Differential Revision: https://reviews.freebsd.org/D38696

Details

Provenance
kdAuthored on Feb 20 2023, 2:44 PM
Differential Revision
D38696: arm: Unbreak debugging programs that use FP instructions
Parents
rGf4a9e9fc7913: x86: whack kernel gcov vestige
Branches
Unknown
Tags
Unknown