Skip to content

Commit dc3c85a

Browse files
Merge #1220
1220: Fix RISC-V support r=asomers a=andreas-schwab Don't try to use PTRACE_[GS]ETREGS, PTRACE_[GS]ETFPREGS or PTRACE_[GS]ETFPXREGS on riscv64, they are legacy-only. Co-authored-by: Andreas Schwab <[email protected]>
2 parents 9c497e0 + c5824de commit dc3c85a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/sys/ptrace/linux.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,31 +48,27 @@ libc_enum!{
4848
target_arch = "mips",
4949
target_arch = "mips64",
5050
target_arch = "x86_64",
51-
target_arch = "riscv64",
5251
target_pointer_width = "32"))))]
5352
PTRACE_GETREGS,
5453
#[cfg(any(all(target_os = "android", target_pointer_width = "32"),
5554
all(target_os = "linux", any(target_env = "musl",
5655
target_arch = "mips",
5756
target_arch = "mips64",
5857
target_arch = "x86_64",
59-
target_arch = "riscv64",
6058
target_pointer_width = "32"))))]
6159
PTRACE_SETREGS,
6260
#[cfg(any(all(target_os = "android", target_pointer_width = "32"),
6361
all(target_os = "linux", any(target_env = "musl",
6462
target_arch = "mips",
6563
target_arch = "mips64",
6664
target_arch = "x86_64",
67-
target_arch = "riscv64",
6865
target_pointer_width = "32"))))]
6966
PTRACE_GETFPREGS,
7067
#[cfg(any(all(target_os = "android", target_pointer_width = "32"),
7168
all(target_os = "linux", any(target_env = "musl",
7269
target_arch = "mips",
7370
target_arch = "mips64",
7471
target_arch = "x86_64",
75-
target_arch = "riscv64",
7672
target_pointer_width = "32"))))]
7773
PTRACE_SETFPREGS,
7874
PTRACE_ATTACH,
@@ -81,15 +77,13 @@ libc_enum!{
8177
target_arch = "mips",
8278
target_arch = "mips64",
8379
target_arch = "x86",
84-
target_arch = "x86_64",
85-
target_arch = "riscv64")))]
80+
target_arch = "x86_64")))]
8681
PTRACE_GETFPXREGS,
8782
#[cfg(all(target_os = "linux", any(target_env = "musl",
8883
target_arch = "mips",
8984
target_arch = "mips64",
9085
target_arch = "x86",
91-
target_arch = "x86_64",
92-
target_arch = "riscv64")))]
86+
target_arch = "x86_64")))]
9387
PTRACE_SETFPXREGS,
9488
PTRACE_SYSCALL,
9589
PTRACE_SETOPTIONS,

0 commit comments

Comments
 (0)