The design is similar to the BFD, Opcodes, and Opdis gems: a Ruby extension (in C) that provides a basic wrapper for the original C libraries, and a Ruby module that provides a more natural, Ruby-like interface.
Not all of the Ptrace features have been enabled or tested. Currently, the following ptrace commands are working and tested:
- PT_ATTACH
- PT_DETACH
- PT_TRACEME
- PT_KILL
- PT_CONT
- PT_STEP
- PS_SYSCALL
- PT_GETREGS
- PT_GETFPREGS
- PT_SETREGS
- PT_SETFPREGS
- PT_READ_I
- PT_READ_D
- PT_WRITE_I
- PT_WRITE_D