@@ -192,7 +192,7 @@ static void continue_until(pid_t chpid, void *addr)
192
192
struct user_regs_struct regs ;
193
193
194
194
/* Obtain the instructions at the <addr>. */
195
- unsigned long data = ptrace (PTRACE_PEEKTEXT , chpid , addr , 0 );
195
+ unsigned long data = ptrace (PTRACE_PEEKTEXT , chpid , addr , NULL );
196
196
/*
197
197
* Emit the <int 3> instruction to the <addr>.
198
198
* XXX: <int 3> is poisoned as the LSB to the <data>
@@ -201,7 +201,7 @@ static void continue_until(pid_t chpid, void *addr)
201
201
ptrace (PTRACE_POKETEXT , chpid , addr , int3poison (data ));
202
202
203
203
/* Resume <chpid> tracee until SIGTRAP occurs. */
204
- ptrace (PTRACE_CONT , chpid , 0 , 0 );
204
+ ptrace (PTRACE_CONT , chpid , NULL , NULL );
205
205
206
206
/*
207
207
* Wait <chpid> tracee signal-delivery-stop and check
@@ -210,7 +210,7 @@ static void continue_until(pid_t chpid, void *addr)
210
210
wait_alive (chpid );
211
211
212
212
/* Obtain GPR set to tweak RIP for further execution. */
213
- ptrace (PTRACE_GETREGS , chpid , 0 , & regs );
213
+ ptrace (PTRACE_GETREGS , chpid , NULL , & regs );
214
214
/*
215
215
* Make sure we indeed are stopped at <addr>.
216
216
* XXX: RIP points right after <int 3> instruction.
@@ -223,7 +223,7 @@ static void continue_until(pid_t chpid, void *addr)
223
223
* instruction at the <addr>.
224
224
*/
225
225
regs .rip -= sizeof (INT3 );
226
- ptrace (PTRACE_SETREGS , chpid , 0 , & regs );
226
+ ptrace (PTRACE_SETREGS , chpid , NULL , & regs );
227
227
ptrace (PTRACE_POKETEXT , chpid , addr , data );
228
228
}
229
229
0 commit comments