diff options
| author | 2009-12-15 16:47:21 -0800 | |
|---|---|---|
| committer | 2009-12-16 07:20:08 -0800 | |
| commit | d51965037325e51f6cd68583413243c3573e47b0 (patch) | |
| tree | b12a96e5adc82f3b72a22f054c9a51dc05d4a302 /kernel/signal.c | |
| parent | ptrace: x86: implement user_single_step_siginfo() (diff) | |
| download | linux-dev-d51965037325e51f6cd68583413243c3573e47b0.tar.xz linux-dev-d51965037325e51f6cd68583413243c3573e47b0.zip | |
ptrace: x86: change syscall_trace_leave() to rely on tracehook when stepping
Suggested by Roland.
Unlike powepc, x86 always calls tracehook_report_syscall_exit(step) with
step = 0, and sends the trap by hand.
This results in unnecessary SIGTRAP when PTRACE_SINGLESTEP follows the
syscall-exit stop.
Change syscall_trace_leave() to pass the correct "step" argument to
tracehook and remove the send_sigtrap() logic.
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 'kernel/signal.c')
0 files changed, 0 insertions, 0 deletions
