Esempio n. 1
0
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
}
Esempio n. 2
0
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
}