summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/ptrace.h
blob: feae0acd8db0bb6ff2ce36641913d086b14b2555 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern void __ptrace_cancel_bpt(struct task_struct *);
extern int ptrace_set_bpt(struct task_struct *);

/*
 * Clear a breakpoint, if one exists.
 */
static inline int ptrace_cancel_bpt(struct task_struct *tsk)
{
	int nsaved = tsk->thread.debug.nsaved;

	if (nsaved)
		__ptrace_cancel_bpt(tsk);

	return nsaved;
}