|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.proc.live.Breakpoint
public class Breakpoint
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 |
installed
|
private long |
oo_address
|
private Instruction |
origInstruction
|
private Proc |
proc
|
private int |
reset_stepping_tasks
|
Constructor Summary | |
---|---|
private |
Breakpoint(long address,
Proc proc)
Private constructor called by create to record address and proc. |
Method Summary | |
---|---|
(package private) Breakpoint |
cloneForProc(Proc proc)
Makes a clone of this Breakpoint, but for a particular Proc. |
int |
compareTo(Object o)
Uses natural ordering on address. |
static Breakpoint |
create(long address,
Proc proc)
Creates a Breakpoint for the Proc at the given Address but does not set it yet. |
boolean |
equals(Object o)
|
long |
getAddress()
|
Instruction |
getInstruction()
If this breakpoint is installed then the original instruction at the breakpoint address is returned. |
Proc |
getProc()
Returns the Proc to which this breakpoint belongs. |
long |
getSetupAddress()
Return the address that the original instruction has been setup if the breakpoint has been setup. |
int |
hashCode()
|
void |
install(Task task)
Installs breakpoint. |
boolean |
isInstalled()
Returns true if break point is installed and not yet removed. |
void |
prepareStep(Task task)
Prepares the given Task for a step over the breakpoint. |
void |
remove(Task task)
Removes the breakpoint. |
(package private) void |
reset(Task task)
Actually removes the breakpoint. |
private void |
set(Task task)
Actually sets the breakpoint. |
void |
stepAbort(Task task)
Aborts a breakpoint setup (interrupted while stepping). |
void |
stepDone(Task task)
Notifies the breakpoint that a step has just taken place and that the task should be put into a state ready to continue (keeping the breakpoint in place). |
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 Proc proc
private int reset_stepping_tasks
private static HashMap installed
private Instruction origInstruction
private long oo_address
Constructor Detail |
---|
private Breakpoint(long address, Proc proc)
Method Detail |
---|
public static Breakpoint create(long address, Proc proc)
public long getAddress()
public long getSetupAddress()
public void install(Task task)
private void set(Task task)
public void remove(Task task)
void reset(Task task)
remove()
.
public void prepareStep(Task task)
stepDone
is
called. The given Task should be stopped and the intention
is that the Task immediately tries to do a step and stepDone()
called immediately afterwards (since this method might
temporarily adjust registers for this Task that get cleaned up
by stepDone() afterwards).
public void stepDone(Task task)
public void stepAbort(Task task)
public Instruction getInstruction()
public Proc getProc()
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
Breakpoint cloneForProc(Proc proc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |