Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/common Slighly improve the PTRACE_CONT comment



details:   https://anonhg.NetBSD.org/src/rev/5ee8930ba623
branches:  trunk
changeset: 510602:5ee8930ba623
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Jun 02 11:46:09 2001 +0000

description:
Slighly improve the PTRACE_CONT comment

diffstat:

 sys/compat/linux/common/linux_misc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r cd59206a928b -r 5ee8930ba623 sys/compat/linux/common/linux_misc.c
--- a/sys/compat/linux/common/linux_misc.c      Sat Jun 02 11:43:40 2001 +0000
+++ b/sys/compat/linux/common/linux_misc.c      Sat Jun 02 11:46:09 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_misc.c,v 1.89 2001/05/27 21:17:16 manu Exp $     */
+/*     $NetBSD: linux_misc.c,v 1.90 2001/06/02 11:46:09 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
@@ -1241,9 +1241,9 @@
 
                        /*
                         * Linux ptrace(PTRACE_CONT, pid, 0, 0) means actually
-                        * to continue as the process left off previously,
-                        * i.e. same as if NetBSD ptrace called with
-                        * addr == (caddr_t) 1.
+                        * to continue where the process left off previously.
+                        * The same thing is achieved by addr == (caddr_t) 1
+                        * on NetBSD, so rewrite 'addr' appropriately.
                         */
                        if (request == LINUX_PTRACE_CONT && SCARG(uap, addr)==0)
                                SCARG(&pta, addr) = (caddr_t) 1;



Home | Main Index | Thread Index | Old Index