import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / arch / arm / kernel / ptrace.h
1 /*
2  *  linux/arch/arm/kernel/ptrace.h
3  *
4  *  Copyright (C) 2000-2002 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  */
10 extern void __ptrace_cancel_bpt(struct task_struct *);
11 extern void ptrace_set_bpt(struct task_struct *);
12 extern void ptrace_break(struct task_struct *, struct pt_regs *);
13
14 /*
15  * Clear a breakpoint, if one exists.
16  */
17 static inline int ptrace_cancel_bpt(struct task_struct *tsk)
18 {
19         int nsaved = tsk->thread.debug.nsaved;
20
21         if (nsaved)
22                 __ptrace_cancel_bpt(tsk);
23
24         return nsaved;
25 }
26