Update readonly_ptr after an execve

Memory mappings are not preserved after an execve, so readonly_ptr
should be updated.

Also, check the return of ptrace PTRACE_POKEDATA calls, and fix a debug test.