Machine-independant handling of registers set with ptrace is tough.