From 38d7289de908640d80f9d00ee984cefa2d1905e7 Mon Sep 17 00:00:00 2001 From: jca Date: Fri, 3 Sep 2021 14:13:06 +0000 Subject: [PATCH] Don't pretend we support PT_STEP on this architecture. The RISC-V doesn't seem to provide hardware support for generic purpose single stepping, and we're not emulating single stepping for riscv64 like we do for alpha or mips64. Hiding PT_STEP makes it possible to run inferior processes with a wip ports/devel/gdb update. ok kettenis@ --- sys/arch/riscv64/include/ptrace.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/riscv64/include/ptrace.h b/sys/arch/riscv64/include/ptrace.h index 5b0aeb455b4..8d20cf3cf43 100644 --- a/sys/arch/riscv64/include/ptrace.h +++ b/sys/arch/riscv64/include/ptrace.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ptrace.h,v 1.3 2021/09/03 14:09:26 jca Exp $ */ +/* $OpenBSD: ptrace.h,v 1.4 2021/09/03 14:13:06 jca Exp $ */ /* * Copyright (c) 2014 Patrick Wildt @@ -16,7 +16,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#if 0 #define PT_STEP (PT_FIRSTMACH + 0) +#endif #define PT_GETREGS (PT_FIRSTMACH + 1) #define PT_SETREGS (PT_FIRSTMACH + 2) #define PT_GETFPREGS (PT_FIRSTMACH + 3) -- 2.20.1