From 9a6283c52452d9fb42026ea2d94b89af432c8e2d Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Thu, 23 Sep 2021 00:01:02 +0200 Subject: [PATCH] Kernel: Define PT_READ_I and PT_READ_D Looking at how these two constants are commonly used in other systems, we should be able to mimic their behavior using our PT_PEEK constant. For example, see: https://man.netbsd.org/NetBSD-6.0.1/i386/ptrace.2 --- Kernel/API/POSIX/sys/ptrace.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Kernel/API/POSIX/sys/ptrace.h b/Kernel/API/POSIX/sys/ptrace.h index b6d5f068c2..01624a9cfc 100644 --- a/Kernel/API/POSIX/sys/ptrace.h +++ b/Kernel/API/POSIX/sys/ptrace.h @@ -24,6 +24,9 @@ extern "C" { #define PT_POKEDEBUG 10 #define PT_PEEKDEBUG 11 +#define PT_READ_I PT_PEEK +#define PT_READ_D PT_PEEK + #define DEBUG_STATUS_REGISTER 6 #define DEBUG_CONTROL_REGISTER 7