Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 825511A921F for ; Fri, 1 Jan 2021 12:58:38 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id B497B85125; Fri, 1 Jan 2021 12:58:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id DBE1884D6D for ; Fri, 1 Jan 2021 12:58:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id F33i2JzBXzqu for ; Fri, 1 Jan 2021 12:58:36 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 248CD85125 for ; Fri, 1 Jan 2021 12:58:36 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 1BC55FA9D; Fri, 1 Jan 2021 12:58:36 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Fri, 1 Jan 2021 12:58:36 +0000 From: "Martin Husemann" Subject: CVS commit: [netbsd-9] src/sys/arch/aarch64 To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210101125836.1BC55FA9D@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Martin Husemann" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: 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.