1/*
2 *  linux/arch/arm/kernel/ptrace.h
3 *
4 *  Copyright (C) 2000 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10extern void __ptrace_cancel_bpt(struct task_struct *);
11extern int ptrace_set_bpt(struct task_struct *);
12
13/*
14 * Clear a breakpoint, if one exists.
15 */
16static inline int ptrace_cancel_bpt(struct task_struct *tsk)
17{
18	int nsaved = tsk->thread.debug.nsaved;
19
20	if (nsaved)
21		__ptrace_cancel_bpt(tsk);
22
23	return nsaved;
24}
25
26