Commit 0fa376e0 authored by Roland McGrath's avatar Roland McGrath Committed by Ingo Molnar

x86: PTRACE_SINGLEBLOCK

This adds the PTRACE_SINGLEBLOCK request on x86, matching the ia64 feature.
The implementation comes from the generic ptrace code and relies on the
low-level machine support provided by arch_has_block_step() et al.
Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 1ecc798c
...@@ -227,6 +227,7 @@ asmlinkage long sys32_ptrace(long request, u32 pid, u32 addr, u32 data) ...@@ -227,6 +227,7 @@ asmlinkage long sys32_ptrace(long request, u32 pid, u32 addr, u32 data)
case PTRACE_KILL: case PTRACE_KILL:
case PTRACE_CONT: case PTRACE_CONT:
case PTRACE_SINGLESTEP: case PTRACE_SINGLESTEP:
case PTRACE_SINGLEBLOCK:
case PTRACE_DETACH: case PTRACE_DETACH:
case PTRACE_SYSCALL: case PTRACE_SYSCALL:
case PTRACE_OLDSETOPTIONS: case PTRACE_OLDSETOPTIONS:
......
...@@ -78,4 +78,6 @@ ...@@ -78,4 +78,6 @@
# define PTRACE_SYSEMU_SINGLESTEP 32 # define PTRACE_SYSEMU_SINGLESTEP 32
#endif #endif
#define PTRACE_SINGLEBLOCK 33 /* resume execution until next branch */
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment