Bug 24035

Summary: ptrace(2) PT_STEP incorrect documentation
Product: Documentation Reporter: bnjf <bnjf>
Component: Books & ArticlesAssignee: Murray Stokely <murray>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description bnjf 2001-01-03 05:10:00 UTC
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

Fix: 

let users know that the addr is required
How-To-Repeat: 
try and ptrace(PT_STEP, pid, 0, 0) something ;)
Comment 1 nik freebsd_committer freebsd_triage 2001-02-02 02:57:17 UTC
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
Comment 2 dd freebsd_committer freebsd_triage 2001-09-03 19:02:32 UTC
State Changed
From-To: open->closed

Murray fixed this but forgot to close this PR. 


Comment 3 dd freebsd_committer freebsd_triage 2001-09-03 19:02:32 UTC
Responsible Changed
From-To: freebsd-doc->murray

JFYI