Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jan 2001 21:05:29 -0800 (PST)
From:      bnjf@optushome.com.au
To:        freebsd-gnats-submit@freebsd.org
Subject:   docs/24035: ptrace(2) PT_STEP incorrect documentation
Message-ID:  <200101030505.f0355T675218@freefall.freebsd.org>
Resent-Message-ID: <200101030510.f035A1U76007@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         24035
>Category:       docs
>Synopsis:       ptrace(2) PT_STEP incorrect documentation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 02 21:10:00 PST 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101030505.f0355T675218>