Commit 731bbe43 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Translate PTRACE_GETEVENTMSG for 32-bit tasks.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1608a96e
...@@ -609,6 +609,22 @@ asmlinkage void do_ptrace(struct pt_regs *regs) ...@@ -609,6 +609,22 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
/* PTRACE_DUMPCORE unsupported... */ /* PTRACE_DUMPCORE unsupported... */
case PTRACE_GETEVENTMSG: {
int err;
if (test_thread_flag(TIF_32BIT))
err = put_user(child->ptrace_message,
(unsigned int __user *) data);
else
err = put_user(child->ptrace_message,
(unsigned long __user *) data);
if (err)
pt_error_return(regs, -err);
else
pt_succ_return(regs, 0);
break;
}
default: { default: {
int err = ptrace_request(child, request, addr, data); int err = ptrace_request(child, request, addr, data);
if (err) if (err)
......
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