1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

Kernel+LibC: Share definitions for sys/ptrace.h

This commit is contained in:
Andreas Kling 2021-08-14 19:35:40 +02:00
parent 6dc688a08d
commit 37e98a55b7
3 changed files with 34 additions and 28 deletions

View file

@ -6,25 +6,10 @@
#pragma once
#include <sys/types.h>
#include <Kernel/API/POSIX/sys/ptrace.h>
__BEGIN_DECLS
#define PT_TRACE_ME 1
#define PT_ATTACH 2
#define PT_CONTINUE 3
#define PT_SYSCALL 4
#define PT_GETREGS 5
#define PT_DETACH 6
#define PT_PEEK 7
#define PT_POKE 8
#define PT_SETREGS 9
#define PT_POKEDEBUG 10
#define PT_PEEKDEBUG 11
#define DEBUG_STATUS_REGISTER 6
#define DEBUG_CONTROL_REGISTER 7
// FIXME: PID/TID ISSUE
// Affects the entirety of LibDebug and Userland/strace.cpp.
// See also Kernel/Ptrace.cpp