void user_disable_single_step(struct task_struct *child) { child->ptrace &= ~PT_DTRACE; child->thread.singlestep_syscall = 0; #ifdef SUBARCH_SET_SINGLESTEPPING SUBARCH_SET_SINGLESTEPPING(child, 0); #endif }
static inline void set_singlestepping(struct task_struct *child, int on) { if (on) child->ptrace |= PT_DTRACE; else child->ptrace &= ~PT_DTRACE; child->thread.singlestep_syscall = 0; #ifdef SUBARCH_SET_SINGLESTEPPING SUBARCH_SET_SINGLESTEPPING(child, on); #endif }