From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; ZDNetIndia.com browser) Description of problem: I think this is a problem with ptrace man page on all linux distributions. The man page says for POKE_* , "copies a word from location data", when in fact it copies the data. i.e. say I want to write 100 to a particular address using ptrace, according to the man page I should be using: int val = 100; ptrace(PTRACE_POKEDATA, pid, addr, &val); This doesn't work, what works is int val = 100; ptrace(PTRACE_POKEDATA, pid, addr, val); Please fix the manpage for ptrace. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. man ptrace 2. 3. Additional info:
Jakub: Is the above description of ptrace correct?
Yes, but it has been fixed in the man page a few months ago: PTRACE_POKETEXT, PTRACE_POKEDATA Copies the word data to location addr in the child's memory. As above, the two requests are cur- rently equivalent.