diff options
| -rw-r--r-- | include/linux/ptrace.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h index 1951805df63a..56f2d63a5cbb 100644 --- a/include/linux/ptrace.h +++ b/include/linux/ptrace.h | |||
| @@ -273,6 +273,18 @@ static inline void user_enable_block_step(struct task_struct *task) | |||
| 273 | } | 273 | } |
| 274 | #endif /* arch_has_block_step */ | 274 | #endif /* arch_has_block_step */ |
| 275 | 275 | ||
| 276 | #ifdef ARCH_HAS_USER_SINGLE_STEP_INFO | ||
| 277 | extern void user_single_step_siginfo(struct task_struct *tsk, | ||
| 278 | struct pt_regs *regs, siginfo_t *info); | ||
| 279 | #else | ||
| 280 | static inline void user_single_step_siginfo(struct task_struct *tsk, | ||
| 281 | struct pt_regs *regs, siginfo_t *info) | ||
| 282 | { | ||
| 283 | memset(info, 0, sizeof(*info)); | ||
| 284 | info->si_signo = SIGTRAP; | ||
| 285 | } | ||
| 286 | #endif | ||
| 287 | |||
| 276 | #ifndef arch_ptrace_stop_needed | 288 | #ifndef arch_ptrace_stop_needed |
| 277 | /** | 289 | /** |
| 278 | * arch_ptrace_stop_needed - Decide whether arch_ptrace_stop() should be called | 290 | * arch_ptrace_stop_needed - Decide whether arch_ptrace_stop() should be called |
