Lines Matching refs:process_id
231 bool SetProgramCounter(const pid_t process_id, uint64_t program_counter) { in SetProgramCounter() argument
236 if (ptrace(PTRACE_GETREGSET, process_id, 1, ®isters_iovec) != 0) { in SetProgramCounter()
240 if ((ptrace(PTRACE_SETREGSET, process_id, 1, ®isters_iovec)) != 0) { in SetProgramCounter()
246 bool StepToEntryPoint(const pid_t process_id) { in StepToEntryPoint() argument
249 if (!GetElfEntryPoint(process_id, &entry_address, &is_arm_mode)) { in StepToEntryPoint()
276 ReadChildMemory(process_id, entry_address, backup.get(), trap_code_size); in StepToEntryPoint()
277 WriteChildMemory(process_id, entry_address, trap_code.get(), trap_code_size); in StepToEntryPoint()
278 ptrace(PTRACE_CONT, process_id, NULL, NULL); in StepToEntryPoint()
280 waitpid(process_id, &status, 0); in StepToEntryPoint()
289 if (!SetProgramCounter(process_id, entry_address)) { in StepToEntryPoint()
292 WriteChildMemory(process_id, entry_address, backup.get(), trap_code_size); in StepToEntryPoint()