aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ptrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ptrace.h')
-rw-r--r--include/linux/ptrace.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h
index e0ff4689d35a..a89ff04bddd9 100644
--- a/include/linux/ptrace.h
+++ b/include/linux/ptrace.h
@@ -329,6 +329,19 @@ static inline void user_single_step_siginfo(struct task_struct *tsk,
329#define current_pt_regs() task_pt_regs(current) 329#define current_pt_regs() task_pt_regs(current)
330#endif 330#endif
331 331
332#ifndef ptrace_signal_deliver
333#define ptrace_signal_deliver() ((void)0)
334#endif
335
336/*
337 * unlike current_pt_regs(), this one is equal to task_pt_regs(current)
338 * on *all* architectures; the only reason to have a per-arch definition
339 * is optimisation.
340 */
341#ifndef signal_pt_regs
342#define signal_pt_regs() task_pt_regs(current)
343#endif
344
332extern int task_current_syscall(struct task_struct *target, long *callno, 345extern int task_current_syscall(struct task_struct *target, long *callno,
333 unsigned long args[6], unsigned int maxargs, 346 unsigned long args[6], unsigned int maxargs,
334 unsigned long *sp, unsigned long *pc); 347 unsigned long *sp, unsigned long *pc);