[xxx] Check result of the function call.
[xxx] In case of PTRACE_PEEKDATA request ptrace expect to get a memory
address as an argument. Cast it to the intptr_t.