]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix debugging of 32bits arm binaries on arm64.
authorcognet <cognet@FreeBSD.org>
Wed, 26 Jun 2019 16:56:56 +0000 (16:56 +0000)
committercognet <cognet@FreeBSD.org>
Wed, 26 Jun 2019 16:56:56 +0000 (16:56 +0000)
commitdff664a8556490c7bc01931399e1f17b202da2d7
tree2c8722c8b4482747f71625dca3b72a20d0f621b9
parent5d0da7a52e3c13b53a506ecdbbaa31656f5584a9
Fix debugging of 32bits arm binaries on arm64.

In set_regs32()/fill_regs32(), we have to get/set SP and LR from/to
tf_x[13] and tf_x[14].
set_regs() and fill_regs() may be called for a 32bits process, if the process
is ptrace'd from a 64bits debugger. So, in set_regs() and fill_regs(), get
or set PC and SPSR from where the debugger expects it, from tf_x[15] and
tf_x[16].
sys/arm64/arm64/machdep.c