Skip to content

Commit 8684b55

Browse files
authored
Merge pull request #1774 from jabedude/sysemu
linux: ptrace: Add definition for PTRACE_SYSEMU/_SINGLESTEP
2 parents 16fcd1c + 1a76789 commit 8684b55

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/unix/linux_like/linux/gnu/b32/x86/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,8 @@ pub const FIONBIO: ::c_ulong = 0x5421;
543543

544544
pub const PTRACE_GETFPXREGS: ::c_uint = 18;
545545
pub const PTRACE_SETFPXREGS: ::c_uint = 19;
546+
pub const PTRACE_SYSEMU: ::c_uint = 31;
547+
pub const PTRACE_SYSEMU_SINGLESTEP: ::c_uint = 32;
546548

547549
pub const MCL_CURRENT: ::c_int = 0x0001;
548550
pub const MCL_FUTURE: ::c_int = 0x0002;

src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,8 @@ pub const PTRACE_SETFPXREGS: ::c_uint = 19;
721721
pub const PTRACE_GETREGS: ::c_uint = 12;
722722
pub const PTRACE_SETREGS: ::c_uint = 13;
723723
pub const PTRACE_PEEKSIGINFO_SHARED: ::c_uint = 1;
724+
pub const PTRACE_SYSEMU: ::c_uint = 31;
725+
pub const PTRACE_SYSEMU_SINGLESTEP: ::c_uint = 32;
724726

725727
pub const MCL_CURRENT: ::c_int = 0x0001;
726728
pub const MCL_FUTURE: ::c_int = 0x0002;

0 commit comments

Comments
 (0)