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

ptrace: Add PT_PEEK

PT_PEEK reads a single word from the tracee's address space and returns
it to the tracer.
This commit is contained in:
Itamar 2020-04-04 11:26:56 +03:00 committed by Andreas Kling
parent 77f671b462
commit 984ff93406
4 changed files with 28 additions and 2 deletions

View file

@ -36,6 +36,7 @@ __BEGIN_DECLS
#define PT_SYSCALL 4
#define PT_GETREGS 5
#define PT_DETACH 6
#define PT_PEEK 7
int ptrace(int request, pid_t pid, void* addr, int data);