Skip to content

Commit

Permalink
Removed gnu, added i686
Browse files Browse the repository at this point in the history
  • Loading branch information
wpovell committed Jan 10, 2019
1 parent 9ed56f2 commit 41b1475
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sys/ptrace/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use sys::signal::Signal;
pub type AddressType = *mut ::libc::c_void;

#[cfg(any(all(target_os = "linux", any(target_arch = "x86_64",
target_env = "gnu"))))]
target_arch = "i686"))))]
use libc::user_regs_struct;

cfg_if! {
Expand Down Expand Up @@ -198,14 +198,14 @@ fn ptrace_peek(request: Request, pid: Pid, addr: AddressType, data: *mut c_void)

/// Get user registers, as with `ptrace(PTRACE_GETREGS, ...)`
#[cfg(any(all(target_os = "linux", any(target_arch = "x86_64",
target_env = "gnu"))))]
target_arch = "i686"))))]
pub fn getregs(pid: Pid) -> Result<user_regs_struct> {
ptrace_get_data::<user_regs_struct>(Request::PTRACE_GETREGS, pid)
}

/// Set user registers, as with `ptrace(PTRACE_SETREGS, ...)`
#[cfg(any(all(target_os = "linux", any(target_arch = "x86_64",
target_env = "gnu"))))]
target_arch = "i686"))))]
pub fn setregs(pid: Pid, regs: user_regs_struct) -> Result<()> {
let res = unsafe {
libc::ptrace(Request::PTRACE_SETREGS as RequestType,
Expand Down

0 comments on commit 41b1475

Please sign in to comment.