|
Prev: Multiple calls to read().
Next: traceroute
From: ShriJ on 17 Jun 2008 23:09 Hi, I am trying to use ptrace for a particular case where I want to skip the instruction pointed to by eip. I am using PTRACE_SINGLESTEP as the request to get to the instruction I want to skip. When I get to that particular instruction, I do: data.eip += 2; //since its a 2 byte instruction if ((error = ptrace(PTRACE_SETREGS, pid, 0, &data))) { perror("SetRegs:"); break; } But this somehow does not work :(. My program goes in some wierd infinite loop. I am on a 2.6.9-39 kernel and dont have PTRACE_SYSEMU. Help appreciated. -Shri
|
Pages: 1 Prev: Multiple calls to read(). Next: traceroute |