Received: by mail.netbsd.org (Postfix, from userid 605) id 1A7A084EA2; Wed, 24 Jun 2020 04:47:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 90AD384EA1 for ; Wed, 24 Jun 2020 04:47:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id xYI1Lx46Ax0p for ; Wed, 24 Jun 2020 04:47:11 +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 223DE84EA0 for ; Wed, 24 Jun 2020 04:47:11 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 0B29FFB28; Wed, 24 Jun 2020 04:47:11 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 24 Jun 2020 04:47:11 +0000 From: "Rin Okuyama" Subject: CVS commit: src/tests/lib/libc/sys To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200624044711.0B29FFB28@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Rin Okuyama" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rin Date: Wed Jun 24 04:47:10 UTC 2020 Modified Files: src/tests/lib/libc/sys: t_ptrace_core_wait.h Log Message: Fix core_dump_procinfo tests for powerpc, for which child process was stalled indefinitely in trap instruction even after PT_CONTINUE. For powerpc, program counter is not automatically incremented by trap instruction. We cannot increment PC in the trap handler, which breaks applications depending on this behavior, e.g., GDB. Therefore, we need to pass (PC + 4) instead of (void *)1 (== PC) to PT_CONTINUE when child process traps itself. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_ptrace_core_wait.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.