]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the signal code on 32-bit breakpoints on arm64
authorAndrew Turner <andrew@FreeBSD.org>
Mon, 7 Feb 2022 11:47:04 +0000 (11:47 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Tue, 22 Feb 2022 16:23:07 +0000 (16:23 +0000)
commit4b8f747b9d31b546cf59fac10878f1104e57f25e
treec63cafc8a4fc4bcaaeab305627bfdc5c73a110dd
parentde87d94008c8035a9d05d3f6e813170ed6371505
Fix the signal code on 32-bit breakpoints on arm64

When debugging 32-bit programs a debugger may insert a instruction that
will raise the undefined instruction trap. The kernel handles these
by raising a SIGTRAP, however the code was incorrect.

Fix this by using the expected TRAP_BRKPT signal code.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 67dc576bae6e624ae46962ad187e0e31fece6688)
sys/arm64/arm64/undefined.c