|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.rt.SourceBreakpoint
public abstract class SourceBreakpoint
Nested Class Summary | |
---|---|
private class |
SourceBreakpoint.ProcEntry
|
static class |
SourceBreakpoint.State
|
Field Summary | |
---|---|
static SourceBreakpoint.State |
DEFERRED
The action point is should be enabled but is not yet, perhaps because a shared library hasn't been loaded yet. |
static SourceBreakpoint.State |
DELETED
The action point is deleted and should not be reenabled. |
static SourceBreakpoint.State |
DISABLED
The action point is disabled and should have no effect in the running process. |
static SourceBreakpoint.State |
ENABLED
The action point is enabled and will be "fired" when hit. |
(package private) int |
id
|
private ArrayList |
observers
|
private HashMap |
procMap
|
private HashMap |
taskStateMap
|
private SourceBreakpoint.State |
userState
|
Constructor Summary | |
---|---|
SourceBreakpoint(int id)
|
|
SourceBreakpoint(int id,
SourceBreakpoint.State state)
|
Method Summary | |
---|---|
void |
addedTo(Object observable)
Acknowledge the request to add this Observer from Object's set of observers was successful. |
void |
addFailed(Object observable,
Throwable w)
Notify that the attempt to add to the specified observer failed. |
void |
addObserver(SourceBreakpointObserver observer)
|
boolean |
appliesTo(Proc proc,
Task task)
|
int |
compareTo(Object o)
|
boolean |
containsPersistentBreakpoint(Proc proc,
Breakpoint.PersistentBreakpoint bpt)
Test if RunState breakpoint is contained in this object. |
void |
deletedFrom(Object observable)
Acknowledge the request to delete this Observer from Object's set of observers was successful (or that the Observer was spontaneously deleted, e.g., due to a task exit). |
void |
deleteObserver(SourceBreakpointObserver observer)
|
void |
disableBreakpoint(Task task,
SteppingEngine steppingEngine)
Delete the object's raw breakpoints from a process via the RunState. |
void |
enableBreakpoint(Task task,
SteppingEngine steppingEngine)
Add this object's raw breakpoints to the process via the RunState object. |
LinkedList |
getAddrs(Proc proc)
Get the list of raw address objects for a process |
abstract LinkedList |
getBreakpointRawAddresses(Task task)
Get all the machine addresses for this breakpoint using the stopped task in the process. |
int |
getId()
|
(package private) abstract long |
getRawAddress(Object addr)
Return the address to use as a breakpoint from the object stored in the list of breakpoints. |
SourceBreakpoint.State |
getState(Task task)
Get the state of an action point. |
Map |
getTaskStateMap()
Get the map from tasks to breakpoint's state in the task. |
SourceBreakpoint.State |
getUserState()
|
int |
numberOfObservers()
|
abstract PrintWriter |
output(PrintWriter writer)
|
void |
removeAllObservers()
|
void |
setAddrs(Proc proc,
LinkedList addrs)
Set the list of raw address objects. |
void |
setState(Task task,
SourceBreakpoint.State state)
Set state of a breakpoint in a task. |
void |
setUserState(SourceBreakpoint.State state)
|
void |
updateHit(Breakpoint.PersistentBreakpoint breakpoint,
Task task,
long address)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private HashMap procMap
public static final SourceBreakpoint.State ENABLED
public static final SourceBreakpoint.State DISABLED
public static final SourceBreakpoint.State DELETED
public static final SourceBreakpoint.State DEFERRED
private HashMap taskStateMap
private SourceBreakpoint.State userState
private ArrayList observers
final int id
Constructor Detail |
---|
public SourceBreakpoint(int id, SourceBreakpoint.State state)
public SourceBreakpoint(int id)
Method Detail |
---|
public SourceBreakpoint.State getState(Task task)
public void setState(Task task, SourceBreakpoint.State state)
public Map getTaskStateMap()
public SourceBreakpoint.State getUserState()
public void setUserState(SourceBreakpoint.State state)
public LinkedList getAddrs(Proc proc)
The
- process
public void setAddrs(Proc proc, LinkedList addrs)
addrs
- the address objectsabstract long getRawAddress(Object addr)
addr
- the object stored in the addrs list
public void enableBreakpoint(Task task, SteppingEngine steppingEngine)
task
- task to which breakpoints are added, although they are in
fact added to the entire process.steppingEngine
- The SteppingEngine to notify.runState
- the RunState objectpublic void disableBreakpoint(Task task, SteppingEngine steppingEngine)
task
- task in the processsteppingEngine
- TODOrunState
- the RunState objectpublic boolean containsPersistentBreakpoint(Proc proc, Breakpoint.PersistentBreakpoint bpt)
bpt
-
public void updateHit(Breakpoint.PersistentBreakpoint breakpoint, Task task, long address)
updateHit
in interface BreakpointObserver
public void addedTo(Object observable)
Observer
addedTo
in interface Observer
public void addFailed(Object observable, Throwable w)
Observer
addFailed
in interface Observer
public void deletedFrom(Object observable)
Observer
deletedFrom
in interface Observer
public void addObserver(SourceBreakpointObserver observer)
public void deleteObserver(SourceBreakpointObserver observer)
public int numberOfObservers()
public void removeAllObservers()
public int getId()
public int compareTo(Object o)
compareTo
in interface Comparable
public abstract LinkedList getBreakpointRawAddresses(Task task)
task
- the stopped task
public abstract PrintWriter output(PrintWriter writer)
public boolean appliesTo(Proc proc, Task task)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |