Commit d38884cb authored by Tom Rini's avatar Tom Rini Committed by Linus Torvalds

[PATCH] x86_64: only single-step into signal handlers if the tracer asked for it

Port of the i386 patch of the same name.
Signed-off-by: default avatarTom Rini <trini@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9da44c98
...@@ -325,7 +325,7 @@ static void setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, ...@@ -325,7 +325,7 @@ static void setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
set_fs(USER_DS); set_fs(USER_DS);
if (regs->eflags & TF_MASK) { if (regs->eflags & TF_MASK) {
if (current->ptrace & PT_PTRACED) { if ((current->ptrace & (PT_PTRACED | PT_DTRACE)) == (PT_PTRACED | PT_DTRACE)) {
ptrace_notify(SIGTRAP); ptrace_notify(SIGTRAP);
} else { } else {
regs->eflags &= ~TF_MASK; regs->eflags &= ~TF_MASK;
......
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