Lines Matching refs:ptrace
144 // FIXME: qemu-user doesn't implement ptrace on most arches
146 mod ptrace {
149 use nix::sys::ptrace::{self, Event, Options};
156 ptrace::traceme().unwrap();
157 // As recommended by ptrace(2), raise SIGTRAP to pause the child
170 ptrace::setoptions(
177 ptrace::syscall(child, None).expect("syscall failed");
179 // Then get the ptrace event for the process exiting
180 ptrace::cont(child, None).expect("cont failed");
190 ptrace::cont(child, None).expect("cont failed");
205 ptrace::setoptions(
212 ptrace::syscall(child, None).expect("syscall failed");
217 // Then get the ptrace event for the process exiting
218 ptrace::cont(child, None).expect("cont failed");
228 ptrace::cont(child, None).expect("cont failed");