This is an example of using ptrace to singlestep through an x86 program on Linux.