summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/ptrace.h
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2009-12-16 01:47:20 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-16 16:20:08 +0100
commit7f38551fc3ff0e17a38d6f3f0f8831380a88f3cc (patch)
tree80a2618da48e46c3918a15cbd72bf2149fe2bd75 /arch/x86/include/asm/ptrace.h
parentptrace: change tracehook_report_syscall_exit() to handle stepping (diff)
downloadlinux-7f38551fc3ff0e17a38d6f3f0f8831380a88f3cc.tar.xz
linux-7f38551fc3ff0e17a38d6f3f0f8831380a88f3cc.zip
ptrace: x86: implement user_single_step_siginfo()
Suggested by Roland. Implement user_single_step_siginfo() for x86. Extract this code from send_sigtrap(). Since x86 calls tracehook_report_syscall_exit(step => 0) the new helper is not used yet. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Roland McGrath <roland@redhat.com> Cc: <linux-arch@vger.kernel.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/include/asm/ptrace.h')
-rw-r--r--arch/x86/include/asm/ptrace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/ptrace.h b/arch/x86/include/asm/ptrace.h
index 3d11fd0f44c5..9d369f680321 100644
--- a/arch/x86/include/asm/ptrace.h
+++ b/arch/x86/include/asm/ptrace.h
@@ -292,6 +292,8 @@ extern void user_enable_block_step(struct task_struct *);
#define arch_has_block_step() (boot_cpu_data.x86 >= 6)
#endif
+#define ARCH_HAS_USER_SINGLE_STEP_INFO
+
struct user_desc;
extern int do_get_thread_area(struct task_struct *p, int idx,
struct user_desc __user *info);