|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.testbed.LocalMemory
public class LocalMemory
Provide access to known local areas of memory. Most useful by doing a fork to create a mirror image of the address space that can then be manipulated using ptrace calls.
Nested Class Summary | |
---|---|
static interface |
LocalMemory.StackBuilder
Callback or builder describing the constructed stack. |
Constructor Summary | |
---|---|
LocalMemory()
|
Method Summary | |
---|---|
static void |
constructStack(LocalMemory.StackBuilder builder)
Allocate a bit of stack, with known content, and pass it back to the client. |
static long |
getCodeAddr()
Returns the address of a function. |
static byte[] |
getCodeBytes()
|
static String |
getCodeFile()
Returns the file-name of a function. |
static int |
getCodeLine()
Returns the line number of a function. |
static String |
getCodeName()
Returns the name of the code function. |
static long |
getDataAddr()
Returns the address of a bunch of data. |
static byte[] |
getDataBytes()
Returns a copy of SIZE data bytes starting at getDataAddr. |
static String |
getModuleName()
Return the basename of the shared library or executable that contains the LocalMemory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalMemory()
Method Detail |
---|
public static String getModuleName()
public static long getDataAddr()
public static byte[] getDataBytes()
public static String getCodeName()
public static long getCodeAddr()
public static byte[] getCodeBytes()
public static int getCodeLine()
public static String getCodeFile()
public static void constructStack(LocalMemory.StackBuilder builder)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |