tags:

views:

13

answers:

0

Hi,

I have a ptrace code for a AIX machine, but want to port it to PPC-linux machine. I was able to figure out the respective ptrace requests on ppc-linux (like for reading registers PTRACE_PPC_GETREGS). However, I am unable to write to the registers, using the SETREGS call. Can there be any particular reason for this?

Also, I found a strange behaviour, when I read something from the text segment, using the peekdata request, I cannot attach after detaching.

Please comment/help

Thanks!