Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Use the proper process (the tracee) to get informat...
details: https://anonhg.NetBSD.org/src/rev/51230b7f8eb4
branches: trunk
changeset: 358567:51230b7f8eb4
user: christos <christos%NetBSD.org@localhost>
date: Mon Jan 08 06:10:30 2018 +0000
description:
Use the proper process (the tracee) to get information about lwps and
registers and the tracer for vmspace.
diffstat:
sys/kern/sys_ptrace_common.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 40c9e50906be -r 51230b7f8eb4 sys/kern/sys_ptrace_common.c
--- a/sys/kern/sys_ptrace_common.c Mon Jan 08 04:45:53 2018 +0000
+++ b/sys/kern/sys_ptrace_common.c Mon Jan 08 06:10:30 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_ptrace_common.c,v 1.33 2018/01/08 04:45:53 christos Exp $ */
+/* $NetBSD: sys_ptrace_common.c,v 1.34 2018/01/08 06:10:30 christos Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.33 2018/01/08 04:45:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.34 2018/01/08 06:10:30 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_ptrace.h"
@@ -772,7 +772,7 @@
void *addr, size_t data)
{
int error;
- struct proc *t = l->l_proc;
+ struct proc *t = (*lt)->l_proc;
struct vmspace *vm;
if ((error = ptrace_update_lwp(t, lt, data)) != 0)
@@ -814,7 +814,7 @@
return EINVAL;
}
- error = proc_vmspace_getref(t, &vm);
+ error = proc_vmspace_getref(l->l_proc, &vm);
if (error)
return error;
Home |
Main Index |
Thread Index |
Old Index