frysk.isa.watchpoints
Class Watchpoint

java.lang.Object
  extended by frysk.isa.watchpoints.Watchpoint

public class Watchpoint
extends Object


Field Summary
private  long address
           
private  int range
           
private  int register
           
private  boolean writeOnly
           
 
Constructor Summary
private Watchpoint(long address, int range, int register, boolean writeOnly)
           
 
Method Summary
static Watchpoint create(long address, int range, int register, boolean writeOnly)
          Create Watchpoint.
 long getAddress()
           
 int getRange()
           
 int getRegister()
           
 boolean isWriteOnly()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

private final long address

range

private final int range

register

private final int register

writeOnly

private final boolean writeOnly
Constructor Detail

Watchpoint

private Watchpoint(long address,
                   int range,
                   int register,
                   boolean writeOnly)
Method Detail

create

public static Watchpoint create(long address,
                                int range,
                                int register,
                                boolean writeOnly)
Create Watchpoint. This is an immutable class that carries only information. It is not connected with the underlying hardware, and there is no guarantee that the information contained in this class is current, or even exists at any given time. The watchpoint manager can, and will, optimize watchpoint allocation to maximize use; and it can, and will, sometimes combine or split hardware watchpoints. Thus this class is immutable, and cannot be changed after instantiation. If you want to alter a watchpoint, you should apply it via the WatchpointFunctionFactory, WatchpointFunction classes and their subclasses, and a new watchpoint object will be generated. Clients should not instantiate this class directly.

Parameters:
address - - address of watchpoint.
range - - range of the watchpoint.
register - - register watchpoint was allocated.
writeOnly - - true if the watchpoint will only trigger on a write.

getRegister

public int getRegister()

getAddress

public long getAddress()

getRange

public int getRange()

isWriteOnly

public boolean isWriteOnly()