| Summary: | ptrace(2) PT_STEP incorrect documentation | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | bnjf <bnjf> |
| Component: | Books & Articles | Assignee: | Murray Stokely <murray> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
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 Murray fixed this but forgot to close this PR. Responsible Changed From-To: freebsd-doc->murray JFYI |
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 ;)