frysk.rt
Class FunctionBreakpoint

java.lang.Object
  extended by frysk.rt.SourceBreakpoint
      extended by frysk.rt.FunctionBreakpoint
All Implemented Interfaces:
Observer, BreakpointObserver, Comparable
Direct Known Subclasses:
PLTBreakpoint, SymbolBreakpoint

public class FunctionBreakpoint
extends SourceBreakpoint


Nested Class Summary
 
Nested classes/interfaces inherited from class frysk.rt.SourceBreakpoint
SourceBreakpoint.State
 
Field Summary
private  boolean containsInlineInstances
           
protected  DwflDie die
           
private  Function function
           
protected  String name
           
 
Fields inherited from class frysk.rt.SourceBreakpoint
DEFERRED, DELETED, DISABLED, ENABLED, id
 
Constructor Summary
FunctionBreakpoint(int id, String name, DwflDie die)
          Set a breakpoint based on a DwarfDie or just a name.
FunctionBreakpoint(int id, String name, ObjectDeclaration function)
           
 
Method Summary
 boolean containsInlineInstances()
           
 LinkedList getBreakpointRawAddresses(Task task)
          Get all the machine addresses for this breakpoint using the stopped task in the process.
 String getName()
           
 long getRawAddress(Object addr)
          Return the address to use as a breakpoint from the object stored in the list of breakpoints.
 PrintWriter output(PrintWriter writer)
           
 
Methods inherited from class frysk.rt.SourceBreakpoint
addedTo, addFailed, addObserver, appliesTo, compareTo, containsPersistentBreakpoint, deletedFrom, deleteObserver, disableBreakpoint, enableBreakpoint, getAddrs, getId, getState, getTaskStateMap, getUserState, numberOfObservers, removeAllObservers, setAddrs, setState, setUserState, updateHit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected final String name

die

protected final DwflDie die

containsInlineInstances

private boolean containsInlineInstances

function

private Function function
Constructor Detail

FunctionBreakpoint

public FunctionBreakpoint(int id,
                          String name,
                          DwflDie die)
Set a breakpoint based on a DwarfDie or just a name.


FunctionBreakpoint

public FunctionBreakpoint(int id,
                          String name,
                          ObjectDeclaration function)
Method Detail

getBreakpointRawAddresses

public LinkedList getBreakpointRawAddresses(Task task)
Description copied from class: SourceBreakpoint
Get all the machine addresses for this breakpoint using the stopped task in the process.

Specified by:
getBreakpointRawAddresses in class SourceBreakpoint
Parameters:
task - the stopped task
Returns:
list of addresses

getRawAddress

public long getRawAddress(Object addr)
Description copied from class: SourceBreakpoint
Return the address to use as a breakpoint from the object stored in the list of breakpoints.

Specified by:
getRawAddress in class SourceBreakpoint
Parameters:
addr - the object stored in the addrs list
Returns:
the raw address at which a breakpoint will be set

getName

public String getName()

containsInlineInstances

public boolean containsInlineInstances()

output

public PrintWriter output(PrintWriter writer)
Specified by:
output in class SourceBreakpoint