summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2020-04-25 13:58:53 +0200
committerAndreas Schwab <schwab@suse.de>2020-04-25 14:02:54 +0200
commitc5824ded78c37f62c6010f59bdfc7e09c85a7186 (patch)
tree112d47fe655287b89619615d59babdb400cdb241 /src/sys
parent9c497e02c16e1a4630db295577c0363935d2a178 (diff)
downloadnix-c5824ded78c37f62c6010f59bdfc7e09c85a7186.zip
Fix RISC-V support
Don't try to use PTRACE_[GS]ETREGS, PTRACE_[GS]ETFPREGS or PTRACE_[GS]ETFPXREGS on riscv64, they are legacy-only.
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/ptrace/linux.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/sys/ptrace/linux.rs b/src/sys/ptrace/linux.rs
index ca89afaa..abed031d 100644
--- a/src/sys/ptrace/linux.rs
+++ b/src/sys/ptrace/linux.rs
@@ -48,7 +48,6 @@ libc_enum!{
target_arch = "mips",
target_arch = "mips64",
target_arch = "x86_64",
- target_arch = "riscv64",
target_pointer_width = "32"))))]
PTRACE_GETREGS,
#[cfg(any(all(target_os = "android", target_pointer_width = "32"),
@@ -56,7 +55,6 @@ libc_enum!{
target_arch = "mips",
target_arch = "mips64",
target_arch = "x86_64",
- target_arch = "riscv64",
target_pointer_width = "32"))))]
PTRACE_SETREGS,
#[cfg(any(all(target_os = "android", target_pointer_width = "32"),
@@ -64,7 +62,6 @@ libc_enum!{
target_arch = "mips",
target_arch = "mips64",
target_arch = "x86_64",
- target_arch = "riscv64",
target_pointer_width = "32"))))]
PTRACE_GETFPREGS,
#[cfg(any(all(target_os = "android", target_pointer_width = "32"),
@@ -72,7 +69,6 @@ libc_enum!{
target_arch = "mips",
target_arch = "mips64",
target_arch = "x86_64",
- target_arch = "riscv64",
target_pointer_width = "32"))))]
PTRACE_SETFPREGS,
PTRACE_ATTACH,
@@ -81,15 +77,13 @@ libc_enum!{
target_arch = "mips",
target_arch = "mips64",
target_arch = "x86",
- target_arch = "x86_64",
- target_arch = "riscv64")))]
+ target_arch = "x86_64")))]
PTRACE_GETFPXREGS,
#[cfg(all(target_os = "linux", any(target_env = "musl",
target_arch = "mips",
target_arch = "mips64",
target_arch = "x86",
- target_arch = "x86_64",
- target_arch = "riscv64")))]
+ target_arch = "x86_64")))]
PTRACE_SETFPXREGS,
PTRACE_SYSCALL,
PTRACE_SETOPTIONS,