Module Name: src
Committed By: jmcneill
Date: Mon Aug 29 17:31:51 UTC 2011
Modified Files:
src/sys/kern: sys_process.c
Log Message:
PR# kern/43681: PT_SYSCALL appears to be broken
sys_ptrace: For PT_CONTINUE/PT_SYSCALL/PT_DETACH, modify the p_trace_enabled
flag of the target process, not the calling process.
To generate a diff of this commit:
cvs rdiff -u -r1.157 -r1.158 src/sys/kern/sys_process.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/sys_process.c
diff -u src/sys/kern/sys_process.c:1.157 src/sys/kern/sys_process.c:1.158
--- src/sys/kern/sys_process.c:1.157 Sun Jul 3 08:57:43 2011
+++ src/sys/kern/sys_process.c Mon Aug 29 17:31:50 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_process.c,v 1.157 2011/07/03 08:57:43 mrg Exp $ */
+/* $NetBSD: sys_process.c,v 1.158 2011/08/29 17:31:50 jmcneill Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_process.c,v 1.157 2011/07/03 08:57:43 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_process.c,v 1.158 2011/08/29 17:31:50 jmcneill Exp $");
#include "opt_ptrace.h"
#include "opt_ktrace.h"
@@ -600,7 +600,7 @@
#endif
}
}
- p->p_trace_enabled = trace_is_enabled(p);
+ t->p_trace_enabled = trace_is_enabled(t);
/*
* Pick up the LWPID, if supplied. There are two cases: