lib.dwfl
Class DwflTestbed.ModuleBuilder

java.lang.Object
  extended by frysk.sys.proc.MapsBuilder
      extended by lib.dwfl.DwflTestbed.ModuleBuilder
Enclosing class:
DwflTestbed

private static class DwflTestbed.ModuleBuilder
extends MapsBuilder


Field Summary
private  Dwfl dwfl
           
private  byte[] maps
           
 
Constructor Summary
DwflTestbed.ModuleBuilder(Dwfl dwfl)
           
 
Method Summary
 void buildBuffer(byte[] maps)
          Called with the raw byte buffer slurped by MapsBuilder.construct(int).
 void buildMap(long addressLow, long addressHigh, boolean permRead, boolean permWrite, boolean permExecute, boolean shared, long offset, int devMajor, int devMinor, int inode, int pathnameOffset, int pathnameLength)
          Build an address map covering [addressLow,addressHigh) with permissions {permR, permW, permX, permP }, device devMajor devMinor, inode, and the pathname's offset/length within the buf.
private  String name(int offset, int length)
           
 
Methods inherited from class frysk.sys.proc.MapsBuilder
construct, construct
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dwfl

private final Dwfl dwfl

maps

private byte[] maps
Constructor Detail

DwflTestbed.ModuleBuilder

DwflTestbed.ModuleBuilder(Dwfl dwfl)
Method Detail

name

private String name(int offset,
                    int length)

buildBuffer

public void buildBuffer(byte[] maps)
Description copied from class: MapsBuilder
Called with the raw byte buffer slurped by MapsBuilder.construct(int).

Specified by:
buildBuffer in class MapsBuilder

buildMap

public void buildMap(long addressLow,
                     long addressHigh,
                     boolean permRead,
                     boolean permWrite,
                     boolean permExecute,
                     boolean shared,
                     long offset,
                     int devMajor,
                     int devMinor,
                     int inode,
                     int pathnameOffset,
                     int pathnameLength)
Description copied from class: MapsBuilder
Build an address map covering [addressLow,addressHigh) with permissions {permR, permW, permX, permP }, device devMajor devMinor, inode, and the pathname's offset/length within the buf. !shared implies private, they are mutually exclusive.

Specified by:
buildMap in class MapsBuilder