1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

ptrace: Report error in PT_PEEK via errno

The syscall wrapper for ptrace needs to return the peeked value when
using  PT_PEEK.
Because of this, the user has to check errno to detect an error in
PT_PEEK.

This commit changes the actual syscall's interface (only for PT_PEEK) to
allow the syscall wrapper to detect an error and change errno.
This commit is contained in:
Itamar 2020-04-10 17:34:31 +03:00 committed by Andreas Kling
parent aae3f7b914
commit 50fd2cabff
3 changed files with 47 additions and 3 deletions

View file

@ -432,6 +432,11 @@ struct SC_ptrace_params {
int data;
};
struct SC_ptrace_peek_params {
u32* address;
u32* out_data;
};
void initialize();
int sync();