Skip to content

Commit f944fce

Browse files
authored
Merge pull request #1834 from GabrielMajeri/ptrace-event-stop
Add `PTRACE_EVENT_STOP`
2 parents 83c3044 + c78e0b8 commit f944fce

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,8 +982,6 @@ pub const PTRACE_EVENT_EXEC: ::c_int = 4;
982982
pub const PTRACE_EVENT_VFORK_DONE: ::c_int = 5;
983983
pub const PTRACE_EVENT_EXIT: ::c_int = 6;
984984
pub const PTRACE_EVENT_SECCOMP: ::c_int = 7;
985-
// PTRACE_EVENT_STOP was added to glibc in 2.26
986-
// pub const PTRACE_EVENT_STOP: ::c_int = 128;
987985

988986
pub const __WNOTHREAD: ::c_int = 0x20000000;
989987
pub const __WALL: ::c_int = 0x40000000;

0 commit comments

Comments
 (0)