diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-19 14:27:27 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-21 14:40:44 -0400 |
commit | 70b58d896b1b30e4b89d369fbeb244c0e952cf9f (patch) | |
tree | 6518547e933ff0b2e85666b8498c2f9b8c8bfa0f /arch/arm/kernel/ptrace.c | |
parent | 7d181b9626057c1f4fb4d231a3c176271782f459 (diff) | |
download | op-kernel-dev-70b58d896b1b30e4b89d369fbeb244c0e952cf9f.zip op-kernel-dev-70b58d896b1b30e4b89d369fbeb244c0e952cf9f.tar.gz |
arm: don't open-code ptrace_report_syscall()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/ptrace.c')
-rw-r--r-- | arch/arm/kernel/ptrace.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c index d407ebf..688a0a9 100644 --- a/arch/arm/kernel/ptrace.c +++ b/arch/arm/kernel/ptrace.c @@ -932,20 +932,7 @@ asmlinkage int syscall_trace(int why, struct pt_regs *regs, int scno) */ ip = regs->ARM_ip; regs->ARM_ip = why; - - /* the 0x80 provides a way for the tracing parent to distinguish - between a syscall stop and SIGTRAP delivery */ - ptrace_notify(SIGTRAP | ((current->ptrace & PT_TRACESYSGOOD) - ? 0x80 : 0)); - /* - * this isn't the same as continuing with a signal, but it will do - * for normal use. strace only continues with a signal if the - * stopping signal is not SIGTRAP. -brl - */ - if (current->exit_code) { - send_sig(current->exit_code, current, 1); - current->exit_code = 0; - } + ptrace_report_syscall(regs); regs->ARM_ip = ip; return current_thread_info()->syscall; |