diff options
author | Andreas Schwab <schwab@suse.de> | 2005-01-11 00:00:07 -0800 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-01-11 00:00:07 -0800 |
commit | 4569dcef8451bd48d7aef9893e5472826cd81d3c (patch) | |
tree | a34b5bcb546a55a9f05dc755f6b02b829ca181e1 /arch | |
parent | 5e2a73373ab4ad14fec0a8a5e2e2c175b10d732d (diff) | |
download | history-4569dcef8451bd48d7aef9893e5472826cd81d3c.tar.gz |
[IA64] Fix PTRACE_GETEVENTMSG ia32 emulation
This patch fixes PTRACE_GETEVENTMSG for the ia32 emulation. The parameter
is a pointer, thus needs to be converted.
Signed-off-by: Andreas Schwab <schwab@suse.de>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/ia32/sys_ia32.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/ia64/ia32/sys_ia32.c b/arch/ia64/ia32/sys_ia32.c index 009e40e500eaf4..f79c0da79bb12c 100644 --- a/arch/ia64/ia32/sys_ia32.c +++ b/arch/ia64/ia32/sys_ia32.c @@ -1873,6 +1873,10 @@ sys32_ptrace (int request, pid_t pid, unsigned int addr, unsigned int data, compat_ptr(data)); break; + case PTRACE_GETEVENTMSG: + ret = put_user(child->ptrace_message, (unsigned int __user *) compat_ptr(data)); + break; + case PTRACE_SYSCALL: /* continue, stop after next syscall */ case PTRACE_CONT: /* restart after signal. */ case PTRACE_KILL: |