|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.sys.ptrace.AddressSpace
public class AddressSpace
A ptrace address space, that can be peeked or poked a "word" at a time.
Field Summary | |
---|---|
static AddressSpace |
DATA
|
private static Log |
fine
|
private long |
length
|
private String |
name
|
private int |
ptPeek
|
private int |
ptPoke
|
static AddressSpace |
TEXT
|
static AddressSpace |
USR
|
Constructor Summary | |
---|---|
AddressSpace(long length,
String name,
int ptPeek,
int ptPoke)
|
Method Summary | |
---|---|
private static AddressSpace |
data()
|
long |
length()
|
private int |
peek(int pid,
long addr)
|
int |
peek(ProcessIdentifier pid,
long addr)
Fetch a byte at ADDR of process PID. |
private void |
poke(int pid,
long addr,
int data)
|
void |
poke(ProcessIdentifier pid,
long addr,
int data)
Store the byte at ADDR of process PID. |
private static AddressSpace |
text()
|
String |
toString()
|
private void |
transfer(int op,
int pid,
long addr,
byte[] bytes,
int offset,
int length)
|
void |
transfer(ProcessIdentifier pid,
long addr,
byte[] bytes,
int offset,
int length,
boolean write)
Transfer data between the local BYTES array and process PID. |
int |
transfer(ProcessIdentifier pid,
long addr,
long length,
byte[] bytes,
int offset,
boolean write)
Transfer data between the local BYTES array and process PID. |
private static AddressSpace |
usr()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final Log fine
private final long length
private final String name
private final int ptPeek
private final int ptPoke
public static final AddressSpace TEXT
public static final AddressSpace DATA
public static final AddressSpace USR
Constructor Detail |
---|
AddressSpace(long length, String name, int ptPeek, int ptPoke)
Method Detail |
---|
public String toString()
toString
in class Object
public long length()
public int peek(ProcessIdentifier pid, long addr)
private int peek(int pid, long addr)
public void poke(ProcessIdentifier pid, long addr, int data)
private void poke(int pid, long addr, int data)
public void transfer(ProcessIdentifier pid, long addr, byte[] bytes, int offset, int length, boolean write)
public int transfer(ProcessIdentifier pid, long addr, long length, byte[] bytes, int offset, boolean write)
private final void transfer(int op, int pid, long addr, byte[] bytes, int offset, int length)
private static AddressSpace text()
private static AddressSpace data()
private static AddressSpace usr()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |