From nobody@FreeBSD.org  Tue Jan  2 21:05:30 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 662E737B400
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Jan 2001 21:05:29 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f0355T675218;
	Tue, 2 Jan 2001 21:05:29 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200101030505.f0355T675218@freefall.freebsd.org>
Date: Tue, 2 Jan 2001 21:05:29 -0800 (PST)
From: bnjf@optushome.com.au
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: ptrace(2) PT_STEP incorrect documentation
X-Send-Pr-Version: www-1.0

>Number:         24035
>Category:       docs
>Synopsis:       ptrace(2) PT_STEP incorrect documentation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    murray
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 02 21:10:00 PST 2001
>Closed-Date:    Mon Sep 3 11:02:32 PDT 2001
>Last-Modified:  Mon Sep 03 11:03:27 PDT 2001
>Originator:     Brad Forschinger
>Release:        4.2-STABLE
>Organization:
>Environment:
FreeBSD betwixt.uliginous.dyndns.org 4.2-STABLE FreeBSD 4.2-STABLE #9: Fri Dec  1 17:05:12 EST 2000     root@betwixt.uliginous.dyndns.org:/usr/src/sys/compile/BETWIXT  i386

>Description:

in the man pge
     PT_STEP       The traced process is single stepped one instruction.  The
                   addr and data fields are not used.

this is a lie. you must feed ptrace() a valid value for addr, just like PT_CONTINUE


>How-To-Repeat:

try and ptrace(PT_STEP, pid, 0, 0) something ;)
>Fix:

let users know that the addr is required

>Release-Note:
>Audit-Trail:

From: Nik Clayton <nik@freebsd.org>
To: hackers@freebsd.org
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: docs/24035: ptrace(2) PT_STEP incorrect documentation
Date: Fri, 2 Feb 2001 02:57:17 +0000

 Folks,
 
 On Tue, Jan 02, 2001 at 09:05:29PM -0800, bnjf@optushome.com.au wrote:
 > >Number:         24035
 > >Category:       docs
 > >Synopsis:       ptrace(2) PT_STEP incorrect documentation
 
 <snip>
 
 > >Description:
 > 
 > in the man pge
 >      PT_STEP       The traced process is single stepped one instruction.  The
 >                    addr and data fields are not used.
 >
 > this is a lie. you must feed ptrace() a valid value for addr, just like 
 > PT_CONTINUE
 
 ?  I've poked through ptrace.S, but it's been a long time since I did
 any assembler, and when I did, it was 6502. . .
 
 N
 -- 
 Internet connection, $19.95 a month.  Computer, $799.95.  Modem, $149.95.
 Telephone line, $24.95 a month.  Software, free.  USENET transmission,
 hundreds if not thousands of dollars.  Thinking before posting, priceless.
 Somethings in life you can't buy.  For everything else, there's MasterCard.
   -- Graham Reed, in the Scary Devil Monastery
 
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Mon Sep 3 11:02:32 PDT 2001 
State-Changed-Why:  
Murray fixed this but forgot to close this PR. 


Responsible-Changed-From-To: freebsd-doc->murray 
Responsible-Changed-By: dd 
Responsible-Changed-When: Mon Sep 3 11:02:32 PDT 2001 
Responsible-Changed-Why:  
JFYI 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24035 
>Unformatted:
