Skip to content

Commit bc7c08a

Browse files
committed
Add PTRACE_EVENT_STOP
1 parent b2e250e commit bc7c08a

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,8 @@ pub const PTRACE_GETEVENTMSG: ::c_int = 0x4201;
11241124
pub const PTRACE_GETSIGINFO: ::c_int = 0x4202;
11251125
pub const PTRACE_SETSIGINFO: ::c_int = 0x4203;
11261126

1127+
pub const PTRACE_EVENT_STOP: ::c_int = 128;
1128+
11271129
pub const F_GETLK: ::c_int = 5;
11281130
pub const F_GETOWN: ::c_int = 9;
11291131
pub const F_SETOWN: ::c_int = 8;

src/unix/linux_like/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,6 +2041,8 @@ pub const SIOCSRARP: ::c_ulong = 0x00008962;
20412041
pub const SIOCGIFMAP: ::c_ulong = 0x00008970;
20422042
pub const SIOCSIFMAP: ::c_ulong = 0x00008971;
20432043

2044+
pub const PTRACE_EVENT_STOP: ::c_int = 128;
2045+
20442046
pub const IPTOS_TOS_MASK: u8 = 0x1E;
20452047
pub const IPTOS_PREC_MASK: u8 = 0xE0;
20462048

src/unix/linux_like/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,8 @@ pub const PTRACE_EVENT_VFORK_DONE: ::c_int = 5;
982982
pub const PTRACE_EVENT_EXIT: ::c_int = 6;
983983
pub const PTRACE_EVENT_SECCOMP: ::c_int = 7;
984984
// PTRACE_EVENT_STOP was added to glibc in 2.26
985-
// pub const PTRACE_EVENT_STOP: ::c_int = 128;
985+
// emscripten doesn't have this yet
986+
//pub const PTRACE_EVENT_STOP: ::c_int = 128;
986987

987988
pub const __WNOTHREAD: ::c_int = 0x20000000;
988989
pub const __WALL: ::c_int = 0x40000000;

0 commit comments

Comments
 (0)