/dev/kUmem and other memory questions

Donn Seeley donn at utah-gr.UUCP
Sun May 26 13:43:01 AEST 1985


Let us not overlook the notorious ptrace() system call...  This is used
by debuggers to do gross things like modify the text of a process to
insert breakpoints, and to read and write a process's 'u' area.  Using
ptrace() is not very convenient -- there are several restrictions on
which processes you may access, what the victim process must do in
order to allow you to perform surgery on it, what you can change in the
victim process and how much data you can change at each transaction (32
bits, on a VAX).  ptrace() does not require dubious sorts of diddling
in /dev/mem or /dev/swap (aka /dev/drum), however.

On Eighth Edition systems there is a directory named '/proc' which you
can use to access a process's address space as though it were a file.
Someday this feature will make its way into systems which people other
than Peter Honeyman can buy...

Donn Seeley    University of Utah CS Dept    donn at utah-cs.arpa
40 46' 6"N 111 50' 34"W    (801) 581-5668    decvax!utah-cs!donn

PS -- Shouldn't this sort of stuff go in net.unix?



More information about the Comp.unix.wizards mailing list