frysk.proc
Class TestBreakpoints.InstructionObserver

java.lang.Object
  extended by frysk.proc.TestBreakpoints.InstructionObserver
All Implemented Interfaces:
Observer, TaskObserver, TaskObserver.Instruction
Enclosing class:
TestBreakpoints

private static class TestBreakpoints.InstructionObserver
extends Object
implements TaskObserver.Instruction


Nested Class Summary
 
Nested classes/interfaces inherited from interface frysk.proc.TaskObserver
TaskObserver.Cloned, TaskObserver.Code, TaskObserver.Execed, TaskObserver.Forked, TaskObserver.Instruction, TaskObserver.Signaled, TaskObserver.Syscalls, TaskObserver.Terminated, TaskObserver.Terminating, TaskObserver.Watch
 
Field Summary
(package private)  boolean added
           
private  long addr
           
private  int addr_hit
           
(package private)  boolean deleted
           
private  Task task
           
 
Constructor Summary
TestBreakpoints.InstructionObserver(Task task, long addr)
           
 
Method Summary
 void addedTo(Object o)
          Acknowledge the request to add this Observer from Object's set of observers was successful.
 void addFailed(Object o, Throwable w)
          Notify that the attempt to add to the specified observer failed.
 void deletedFrom(Object o)
          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).
 int getAddrHit()
           
 Action updateExecuted(Task task)
          The task has started executing or has executed another instruction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

added

boolean added

deleted

boolean deleted

task

private final Task task

addr

private final long addr

addr_hit

private int addr_hit
Constructor Detail

TestBreakpoints.InstructionObserver

TestBreakpoints.InstructionObserver(Task task,
                                    long addr)
Method Detail

addedTo

public void addedTo(Object o)
Description copied from interface: Observer
Acknowledge the request to add this Observer from Object's set of observers was successful.

Specified by:
addedTo in interface Observer

deletedFrom

public void deletedFrom(Object o)
Description copied from interface: Observer
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).

Specified by:
deletedFrom in interface Observer

addFailed

public void addFailed(Object o,
                      Throwable w)
Description copied from interface: Observer
Notify that the attempt to add to the specified observer failed.

Specified by:
addFailed in interface Observer

updateExecuted

public Action updateExecuted(Task task)
Description copied from interface: TaskObserver.Instruction
The task has started executing or has executed another instruction. Return Action.BLOCK to block the task's further execution. When Action.CONTINUE is returned this method will be called as soon as one instruction has been executed.

Specified by:
updateExecuted in interface TaskObserver.Instruction

getAddrHit

public int getAddrHit()