|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.isa.watchpoints.WatchpointFunctions frysk.isa.watchpoints.IA32WatchpointFunctions
class IA32WatchpointFunctions
Field Summary |
---|
Fields inherited from class frysk.isa.watchpoints.WatchpointFunctions |
---|
noOfWatchpoints, watchpointMaxLength, watchpointMinLength |
Constructor Summary | |
---|---|
IA32WatchpointFunctions()
|
Method Summary | |
---|---|
void |
deleteWatchpoint(Task task,
int index)
Deletes a watchpoint. |
boolean |
hasWatchpointTriggered(Task task,
int index)
Reads the Debug Status Register and checks if the breakpoint specified has fired. |
protected long |
readControlRegister(Task task)
Reads the Debug control register. |
protected long |
readStatusRegister(Task task)
Reads the Debug status register. |
Watchpoint |
readWatchpoint(Task task,
int index)
Reads a watchpoint. |
void |
resetWatchpoint(Task task,
int index)
Resets the appropriate bit in the debug status register after a watchpoint has triggered, thereby reseting it. |
void |
setWatchpoint(Task task,
int index,
long addr,
int range,
boolean writeOnly)
Builds and sets a hardware watchpoint on a task. |
private boolean |
testBit(long register,
int bitToTest)
|
Methods inherited from class frysk.isa.watchpoints.WatchpointFunctions |
---|
getAllWatchpoints, getWatchpointCount, getWatchpointMaxLength, getWatchpointMinLength |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IA32WatchpointFunctions()
Method Detail |
---|
public void setWatchpoint(Task task, int index, long addr, int range, boolean writeOnly)
setWatchpoint
in class WatchpointFunctions
task
- - task to set a watchpoint on.index
- - watchpoint number to write. Architecture
dependent.addr
- - linear virtual address to watch.range
- - length of range to watch. Normally
1,2 or 4 bytes.writeOnly
- - When true, only trigger when address is
written. False, trigger when address is read or written to.public Watchpoint readWatchpoint(Task task, int index)
readWatchpoint
in class WatchpointFunctions
task
- - task to read a watchpoint from.index
- - watchpoint number to read.
public final void deleteWatchpoint(Task task, int index)
deleteWatchpoint
in class WatchpointFunctions
task
- - task on which to delete a watchpoint.index
- - watchpoint number to delete.public boolean hasWatchpointTriggered(Task task, int index)
hasWatchpointTriggered
in class WatchpointFunctions
task
- - task to read the debug control
register from.index
- - Debug register to checkpublic void resetWatchpoint(Task task, int index)
resetWatchpoint
in class WatchpointFunctions
task
- - task to read the debug control
register from.index
- - Debug register to reset.protected long readControlRegister(Task task)
readControlRegister
in class WatchpointFunctions
task
- - task to read the debug control
register from.protected long readStatusRegister(Task task)
readStatusRegister
in class WatchpointFunctions
task
- - task to read the debug status
register from.private boolean testBit(long register, int bitToTest)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |