aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-02-16 21:22:40 +0000
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 19:30:36 +0100
commit09276d905ef7498212ef69d5c324d027dc405896 (patch)
tree85e0d4a506e1ed1cb0f5c908e6ec41b2fdd1a01c /arch
parent54f2da755b7f0bf022ea204240cba824af4d80ad (diff)
32-bit compatibility for ptrace GETEVENTMSG operation.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/kernel/ptrace32.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/mips/kernel/ptrace32.c b/arch/mips/kernel/ptrace32.c
index eee207969c2..a8a72c9a1cc 100644
--- a/arch/mips/kernel/ptrace32.c
+++ b/arch/mips/kernel/ptrace32.c
@@ -24,7 +24,6 @@
#include <linux/smp_lock.h>
#include <linux/user.h>
#include <linux/security.h>
-#include <linux/signal.h>
#include <asm/cpu.h>
#include <asm/fpu.h>
@@ -273,6 +272,11 @@ asmlinkage int sys32_ptrace(int request, int pid, int addr, int data)
ret = ptrace_detach(child, data);
break;
+ case PTRACE_GETEVENTMSG:
+ ret = put_user(child->ptrace_message,
+ (unsigned int __user *) (unsigned long) data);
+ break;
+
default:
ret = ptrace_request(child, request, addr, data);
break;