Module Name: src
Committed By: rin
Date: Thu Aug 24 05:55:26 UTC 2023
Modified Files:
src/tests/lib/libc/sys: t_ptrace_core_wait.h
Log Message:
t_ptrace_core_wait.h: Increment PC after trap, also for riscv
Fix *:core_dump_procinfo tests for riscv64.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 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.
Modified files:
Index: src/tests/lib/libc/sys/t_ptrace_core_wait.h
diff -u src/tests/lib/libc/sys/t_ptrace_core_wait.h:1.7 src/tests/lib/libc/sys/t_ptrace_core_wait.h:1.8
--- src/tests/lib/libc/sys/t_ptrace_core_wait.h:1.7 Thu Jun 9 17:39:21 2022
+++ src/tests/lib/libc/sys/t_ptrace_core_wait.h Thu Aug 24 05:55:25 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ptrace_core_wait.h,v 1.7 2022/06/09 17:39:21 skrll Exp $ */
+/* $NetBSD: t_ptrace_core_wait.h,v 1.8 2023/08/24 05:55:25 rin Exp $ */
/*-
* Copyright (c) 2016, 2017, 2018, 2019, 2020 The NetBSD Foundation, Inc.
@@ -209,7 +209,8 @@ ATF_TC_BODY(core_dump_procinfo, tc)
"without signal to be sent\n");
#if defined(__aarch64__) || defined(__arm__) || defined(__hppa__) || \
- defined(__powerpc__) || defined(__sh3__) || defined(sparc)
+ defined(__powerpc__) || defined(__riscv__) || defined(__sh3__) || \
+ defined(sparc)
/*
* For these archs, program counter is not automatically incremented
* by a trap instruction. We cannot increment PC in the trap handler,