File tree 1 file changed +8
-4
lines changed 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,10 @@ pub type AddressType = *mut ::libc::c_void;
14
14
target_os = "linux" ,
15
15
any(
16
16
all(
17
- target_arch = "x86_64" ,
17
+ any ( target_arch = "x86_64" , target_arch = "aarch64" ) ,
18
18
any( target_env = "gnu" , target_env = "musl" )
19
19
) ,
20
20
all( target_arch = "x86" , target_env = "gnu" ) ,
21
- all( target_arch = "aarch64" , target_env = "gnu" ) ,
22
21
all( target_arch = "riscv64" , target_env = "gnu" ) ,
23
22
) ,
24
23
) ) ]
@@ -334,8 +333,13 @@ pub fn getregs(pid: Pid) -> Result<user_regs_struct> {
334
333
/// [ptrace(2)]: https://www.man7.org/linux/man-pages/man2/ptrace.2.html
335
334
#[ cfg( all(
336
335
target_os = "linux" ,
337
- target_env = "gnu" ,
338
- any( target_arch = "aarch64" , target_arch = "riscv64" )
336
+ any(
337
+ all(
338
+ target_arch = "aarch64" ,
339
+ any( target_env = "gnu" , target_env = "musl" )
340
+ ) ,
341
+ all( target_arch = "riscv64" , target_env = "gnu" )
342
+ )
339
343
) ) ]
340
344
pub fn getregs ( pid : Pid ) -> Result < user_regs_struct > {
341
345
getregset :: < regset:: NT_PRSTATUS > ( pid)
You can’t perform that action at this time.
0 commit comments