void ptrace_arch_set_pc(unsigned long pc) { _read_greg(); memcpy(_target.reg + offsetof(struct reg, pc), &pc, sizeof(unsigned long)); _write_greg(); }
void ptrace_arch_set_pc(unsigned long pc) { _read_greg(); memcpy(_target.reg + 34 * sizeof(unsigned long int), &pc, sizeof(unsigned long)); _write_greg(); }
void ptrace_arch_set_pc(pid_t tid, unsigned long pc) { _read_greg(tid); memcpy(_target.reg + 37 * sizeof(register_t), &pc, sizeof(register_t)); _write_greg(tid); }