- data TracedProcess
- pid :: TracedProcess -> CPid
- data RemotePtr a
- castRemotePtr :: RemotePtr t -> RemotePtr a
- traceProcess :: CPid -> IO TracedProcess
- continue :: TracedProcess -> IO ()
- detach :: TracedProcess -> IO ()
- peekBytes :: TracedProcess -> RemotePtr a -> Int -> IO ByteString
- pokeBytes :: TracedProcess -> RemotePtr a -> ByteString -> IO ()
- peek :: Storable a => TracedProcess -> RemotePtr a -> IO a
Documentation
data TracedProcess Source
pid :: TracedProcess -> CPidSource
castRemotePtr :: RemotePtr t -> RemotePtr aSource
traceProcess :: CPid -> IO TracedProcessSource
Attach to an existing process
continue :: TracedProcess -> IO ()Source
Attach to a new process traceForkExec :: IO () -> FilePath -> [String] -> IO TracedProcess traceForkExec setup file argv = do pid - fork (setup > ptrace_traceme >> execvp file argv) waitpid pid return $ TracedProcess pid
Continue a process until it hits a signal FIXME: return info about the signal
detach :: TracedProcess -> IO ()Source
peekBytes :: TracedProcess -> RemotePtr a -> Int -> IO ByteStringSource
pokeBytes :: TracedProcess -> RemotePtr a -> ByteString -> IO ()Source