mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Kernel: Implement new ptrace function PT_PEEKBUF
This enables the tracer to copy large amounts of data in a much saner way.
This commit is contained in:
parent
3e223185b3
commit
0f8483f09c
4 changed files with 35 additions and 0 deletions
|
@ -21,8 +21,11 @@ extern "C" {
|
|||
#define PT_PEEK 7
|
||||
#define PT_POKE 8
|
||||
#define PT_SETREGS 9
|
||||
|
||||
// Serenity extensions:
|
||||
#define PT_POKEDEBUG 10
|
||||
#define PT_PEEKDEBUG 11
|
||||
#define PT_PEEKBUF 12
|
||||
|
||||
#define PT_READ_I PT_PEEK
|
||||
#define PT_READ_D PT_PEEK
|
||||
|
|
|
@ -458,6 +458,10 @@ struct SC_stat_params {
|
|||
int follow_symlinks;
|
||||
};
|
||||
|
||||
struct SC_ptrace_buf_params {
|
||||
MutableBufferArgument<u8, size_t> buf;
|
||||
};
|
||||
|
||||
struct SC_ptrace_params {
|
||||
int request;
|
||||
pid_t tid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue