|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.proc.live.Watchpoint
public class Watchpoint
Internal proc class that represents a Breakpoint at a certain address in a Proc. Some attempts are made to have synchronize different Breakpoint instances at the same address in the same Proc, but currently this isn't a full singleton.
Field Summary | |
---|---|
private long |
address
|
private static HashMap |
installedWatchpoints
|
private int |
length
|
private Task |
task
|
private boolean |
writeOnly
|
Constructor Summary | |
---|---|
private |
Watchpoint(long address,
int length,
boolean writeOnly,
Task task)
Private constructor called by create to record address and proc. |
Method Summary | |
---|---|
int |
compareTo(Object o)
Uses natural ordering on address. |
static Watchpoint |
create(long address,
int length,
boolean writeOnly,
Task task)
Creates a Breakpoint for the Proc at the given Address but does not set it yet. |
boolean |
equals(Object o)
|
long |
getAddress()
|
int |
getLength()
|
Task |
getTask()
Returns the Proc to which this breakpoint belongs. |
int |
hashCode()
|
void |
install(Task task)
Installs breakpoint. |
boolean |
isInstalled()
Returns true if break point is installed and not yet removed. |
boolean |
isWriteOnly()
|
void |
remove(Task task)
Removes the breakpoint. |
private void |
reset(Task task)
Actually removes the breakpoint. |
private void |
set(Task task)
Actually sets the breakpoint. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final long address
private final int length
private final boolean writeOnly
private final Task task
private static HashMap installedWatchpoints
Constructor Detail |
---|
private Watchpoint(long address, int length, boolean writeOnly, Task task)
Method Detail |
---|
public static Watchpoint create(long address, int length, boolean writeOnly, Task task)
public long getAddress()
public int getLength()
public boolean isWriteOnly()
public void install(Task task)
private void set(Task task)
public void remove(Task task)
private void reset(Task task)
public Task getTask()
public boolean isInstalled()
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(Object o)
compareTo
in interface Comparable
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |