Skip to content

Commit

Permalink
[SPARC64]: Translate PTRACE_GETEVENTMSG for 32-bit tasks.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Apr 10, 2006
1 parent 1608a96 commit 731bbe4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions arch/sparc64/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,22 @@ asmlinkage void do_ptrace(struct pt_regs *regs)

/* 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: {
int err = ptrace_request(child, request, addr, data);
if (err)
Expand Down

0 comments on commit 731bbe4

Please sign in to comment.