From: jca Date: Fri, 3 Sep 2021 14:09:26 +0000 (+0000) Subject: Enable ptrace(2) support for PT_GETFPREGS/PT_SETFPREGS X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=70b48b8440a98d9893c1c4aec97c5ba3275022d5;p=openbsd Enable ptrace(2) support for PT_GETFPREGS/PT_SETFPREGS The code is already there, it was unreachable because of this #if 0. ok kettenis@ --- diff --git a/sys/arch/riscv64/include/ptrace.h b/sys/arch/riscv64/include/ptrace.h index 189c9efe4b7..5b0aeb455b4 100644 --- a/sys/arch/riscv64/include/ptrace.h +++ b/sys/arch/riscv64/include/ptrace.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ptrace.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */ +/* $OpenBSD: ptrace.h,v 1.3 2021/09/03 14:09:26 jca Exp $ */ /* * Copyright (c) 2014 Patrick Wildt @@ -19,7 +19,5 @@ #define PT_STEP (PT_FIRSTMACH + 0) #define PT_GETREGS (PT_FIRSTMACH + 1) #define PT_SETREGS (PT_FIRSTMACH + 2) -#if 0 // XXX ptrace fpreg support #define PT_GETFPREGS (PT_FIRSTMACH + 3) #define PT_SETFPREGS (PT_FIRSTMACH + 4) -#endif