WIP(ptrace): Add an alternative to Linux' user_regs_struct

This commit is contained in:
jD91mZM2
2019-06-25 10:07:58 +02:00
parent 5cdc240d13
commit a7aff4b60d
2 changed files with 94 additions and 0 deletions
+6
View File
@@ -65,6 +65,12 @@ pub const PROT_EXEC: usize = 0x0001_0000;
pub const PROT_WRITE: usize = 0x0002_0000;
pub const PROT_READ: usize = 0x0004_0000;
pub const PTRACE_CONT: u8 = 0b0000_0001;
pub const PTRACE_SINGLESTEP: u8 = 0b0000_0010;
pub const PTRACE_SYSCALL: u8 = 0b0000_0011;
pub const PTRACE_OPERATIONMASK: u8 = 0b0000_1111;
pub const PTRACE_SYSEMU: u8 = 0b0001_0000;
pub const SEEK_SET: usize = 0;
pub const SEEK_CUR: usize = 1;
pub const SEEK_END: usize = 2;