Module Name: src Committed By: martin Date: Fri Jan 1 12:58:36 UTC 2021
Modified Files: src/sys/arch/aarch64/aarch64 [netbsd-9]: netbsd32_machdep.c trap.c src/sys/arch/aarch64/include [netbsd-9]: netbsd32_machdep.h ptrace.h Log Message: Pull up following revision(s) (requested by rin in ticket #1172): sys/arch/aarch64/aarch64/trap.c: revision 1.30 sys/arch/aarch64/include/ptrace.h: revision 1.10 sys/arch/aarch64/include/netbsd32_machdep.h: revision 1.4 (patch) sys/arch/aarch64/aarch64/netbsd32_machdep.c: revision 1.14 sys/arch/aarch64/aarch64/netbsd32_machdep.c: revision 1.15 Add support of ptrace(2) for COMPAT_NETBSD32. Now, GDB for arm32 is usable for debugging 32bit applications. OK ryo@ For rev 1.14 and before, netbsd32_process_write_regs() returns EINVAL if non-modifiable bits are set in CPSR. Instead, mask out non-modifiable bits and make this function success regardless of value in CPSR. New behavior matches that of arm: https://nxr.netbsd.org/xref/src/sys/arch/arm/arm/process_machdep.c#187 This fixes lib/libc/sys/t_ptrace_wait*:access_regs6 tests, in which register contents retrieved by PT_GETREGS are set back by PT_SETREGS. No new regression is observed in full ATF run. OK ryo To generate a diff of this commit: cvs rdiff -u -r1.7.2.1 -r1.7.2.2 \ src/sys/arch/aarch64/aarch64/netbsd32_machdep.c cvs rdiff -u -r1.17.4.3 -r1.17.4.4 src/sys/arch/aarch64/aarch64/trap.c cvs rdiff -u -r1.2 -r1.2.4.1 src/sys/arch/aarch64/include/netbsd32_machdep.h cvs rdiff -u -r1.9 -r1.9.2.1 src/sys/arch/aarch64/include/ptrace.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.