using ptrace to print the registers and stack of a child process. x86-64, RHEL 6.5