Page MenuHomeFreeBSD

arm64: Mask non-debug exceptions when single stepping

Authored by andrew on Mar 14 2024, 3:19 PM.
Referenced Files
Unknown Object (File)
Thu, Jul 4, 7:38 AM
Unknown Object (File)
Sun, Jun 16, 1:22 PM
Unknown Object (File)
Jun 7 2024, 11:42 PM
Unknown Object (File)
Jun 6 2024, 9:35 AM
Unknown Object (File)
Jun 4 2024, 3:22 PM
Unknown Object (File)
May 30 2024, 9:43 PM
Unknown Object (File)
May 27 2024, 2:43 AM
Unknown Object (File)
May 26 2024, 5:37 PM



When an exception is pending when single stepping we may extern the
handler for that exception rather than the single step handler. This
could cause the scheduler to fire to run a new thread. This will mean
we single step to a new thread causing unexpected results.

Handle this by masking non-debug exceptions. This will cause issues
when stepping over instructions that access the DAIF values so future
work is needed to handle these cases, but for most code this now works
as excpeted.

Sponsored by: Arm Ltd

Diff Detail

rG FreeBSD src repository
Lint Not Applicable
Tests Not Applicable