Switch to the new ptrace API.