patch-2.2.16 linux/arch/s390/kernel/ptrace.c
Next file: linux/arch/s390/kernel/reipl.S
Previous file: linux/arch/s390/kernel/process.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Wed Jun 7 14:26:42 2000
- Orig file:
v2.2.15/linux/arch/s390/kernel/ptrace.c
- Orig date:
Wed May 3 17:16:31 2000
diff -urN v2.2.15/linux/arch/s390/kernel/ptrace.c linux/arch/s390/kernel/ptrace.c
@@ -474,6 +474,10 @@
}
ret = -ESRCH;
// printk("child=%lX child->flags=%lX",child,child->flags);
+ /* I added child!=current line so we can get the */
+ /* ieee_instruction_pointer from the user structure DJB */
+ if(child!=current)
+ {
if (!(child->flags & PF_PTRACED))
goto out;
if (child->state != TASK_STOPPED)
@@ -483,7 +487,7 @@
}
if (child->p_pptr != current)
goto out;
-
+ }
switch (request)
{
/* If I and D space are separate, these will need to be fixed. */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)