File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1+ Add ` getregset() ` for Linux/musl/aarch64
Original file line number Diff line number Diff line change @@ -14,11 +14,10 @@ pub type AddressType = *mut ::libc::c_void;
1414 target_os = "linux" ,
1515 any(
1616 all(
17- target_arch = "x86_64" ,
17+ any ( target_arch = "x86_64" , target_arch = "aarch64" ) ,
1818 any( target_env = "gnu" , target_env = "musl" )
1919 ) ,
2020 all( target_arch = "x86" , target_env = "gnu" ) ,
21- all( target_arch = "aarch64" , target_env = "gnu" ) ,
2221 all( target_arch = "riscv64" , target_env = "gnu" ) ,
2322 ) ,
2423) ) ]
@@ -334,8 +333,13 @@ pub fn getregs(pid: Pid) -> Result<user_regs_struct> {
334333/// [ptrace(2)]: https://www.man7.org/linux/man-pages/man2/ptrace.2.html
335334#[ cfg( all(
336335 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+ )
339343) ) ]
340344pub fn getregs ( pid : Pid ) -> Result < user_regs_struct > {
341345 getregset :: < regset:: NT_PRSTATUS > ( pid)
You can’t perform that action at this time.
0 commit comments