Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for PTRACE_SYSEMU and PTRACE_SYSEMU_SINGLESTEP on musl #3245

Merged
merged 5 commits into from May 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/unix/linux_like/linux/musl/b32/powerpc.rs
Expand Up @@ -257,6 +257,9 @@ pub const MAP_STACK: ::c_int = 0x020000;
pub const MAP_HUGETLB: ::c_int = 0x040000;
pub const MAP_SYNC: ::c_int = 0x080000;

pub const PTRACE_SYSEMU: ::c_int = 0x1d;
pub const PTRACE_SYSEMU_SINGLESTEP: ::c_int = 0x1e;

pub const SOCK_STREAM: ::c_int = 1;
pub const SOCK_DGRAM: ::c_int = 2;
pub const SOCK_SEQPACKET: ::c_int = 5;
Expand Down
3 changes: 3 additions & 0 deletions src/unix/linux_like/linux/musl/b32/x86/mod.rs
Expand Up @@ -456,6 +456,9 @@ pub const FLUSHO: ::tcflag_t = 0x00001000;
pub const POLLWRNORM: ::c_short = 0x100;
pub const POLLWRBAND: ::c_short = 0x200;

pub const PTRACE_SYSEMU: ::c_int = 31;
pub const PTRACE_SYSEMU_SINGLESTEP: ::c_int = 32;

// Syscall table
pub const SYS_restart_syscall: ::c_long = 0;
pub const SYS_exit: ::c_long = 1;
Expand Down
3 changes: 3 additions & 0 deletions src/unix/linux_like/linux/musl/b64/powerpc64.rs
Expand Up @@ -173,6 +173,9 @@ pub const MAP_STACK: ::c_int = 0x020000;
pub const MAP_HUGETLB: ::c_int = 0x040000;
pub const MAP_SYNC: ::c_int = 0x080000;

pub const PTRACE_SYSEMU: ::c_int = 0x1d;
pub const PTRACE_SYSEMU_SINGLESTEP: ::c_int = 0x1e;

pub const SOCK_STREAM: ::c_int = 1;
pub const SOCK_DGRAM: ::c_int = 2;

Expand Down
3 changes: 3 additions & 0 deletions src/unix/linux_like/linux/musl/b64/s390x.rs
Expand Up @@ -179,6 +179,9 @@ pub const MAP_STACK: ::c_int = 0x020000;
pub const MAP_HUGETLB: ::c_int = 0x040000;
pub const MAP_SYNC: ::c_int = 0x080000;

pub const PTRACE_SYSEMU: ::c_int = 31;
pub const PTRACE_SYSEMU_SINGLESTEP: ::c_int = 32;

pub const EDEADLOCK: ::c_int = 35;
pub const ENAMETOOLONG: ::c_int = 36;
pub const ENOLCK: ::c_int = 37;
Expand Down
3 changes: 3 additions & 0 deletions src/unix/linux_like/linux/musl/b64/x86_64/mod.rs
Expand Up @@ -682,6 +682,9 @@ pub const O_RSYNC: ::c_int = 1052672;
pub const O_DSYNC: ::c_int = 4096;
pub const O_ASYNC: ::c_int = 0x2000;

pub const PTRACE_SYSEMU: ::c_int = 31;
pub const PTRACE_SYSEMU_SINGLESTEP: ::c_int = 32;

pub const SIGSTKSZ: ::size_t = 8192;
pub const MINSIGSTKSZ: ::size_t = 2048;

Expand Down