32-bit compatibility for ptrace GETEVENTMSG operation.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 16 Feb 2005 21:22:40 +0000 (21:22 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 29 Oct 2005 18:30:36 +0000 (19:30 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/ptrace32.c

index eee207969c21d04908733768003d227393d34272..a8a72c9a1ccad21093e08ccb6392545ca6f05520 100644 (file)
@@ -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;