|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.proc.live.WatchpointAddresses
public class WatchpointAddresses
Keeps track of address watchppoints for a Proc (all Tasks of a Proc share the same breakpoints). Watchpoints absolute addresses with a length Proc text/data area. This class is used to construct higher level watchpoint observers. The class keeps track of the number of observers interested in an address/length for the Proc. It adds or deletes the actual watchpoints depending on the number of active observers.
Constructor Summary | |
---|---|
WatchpointAddresses(Proc proc)
Package private constructor used by the Proc when created. |
Method Summary | |
---|---|
boolean |
addWatchpoint(TaskObserver.Watch observer,
Task task,
long address,
int length,
boolean writeOnly)
Adds a watchpoint observer to an address. |
Collection |
getWatchObservers(Task task,
long address,
int length,
boolean writeOnly)
Called by the Proc when it has trapped a watchpoint. |
Watchpoint |
getWatchpoint(Task task,
long address,
int length,
boolean writeOnly)
|
void |
removeAllWatchObservers()
Called from TaskState when the Task gets an execed event which clears the whole address space. |
boolean |
removeWatchpoint(TaskObserver.Watch observer,
Task task,
long address,
int length,
boolean writeOnly)
Removes an observer from a watchpoint. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WatchpointAddresses(Proc proc)
Method Detail |
---|
public boolean addWatchpoint(TaskObserver.Watch observer, Task task, long address, int length, boolean writeOnly)
public boolean removeWatchpoint(TaskObserver.Watch observer, Task task, long address, int length, boolean writeOnly)
IllegalArgumentException
- if the observer was never added.public Collection getWatchObservers(Task task, long address, int length, boolean writeOnly)
public Watchpoint getWatchpoint(Task task, long address, int length, boolean writeOnly)
public void removeAllWatchObservers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |