frysk.stack
Class FrameDecorator

java.lang.Object
  extended by frysk.stack.Frame
      extended by frysk.stack.FrameDecorator
Direct Known Subclasses:
DebugInfoFrame

public abstract class FrameDecorator
extends Frame

Decorator wrapper for the ABI frame. More abstract frames, such as the DebuginfoFrame extend this class.


Method Summary
 long getAddress()
          Returns the program counter for this StackFrame.
 long getAdjustedAddress()
          Returns the pre-call PC for this non-interrupted StackFrame.
 FrameIdentifier getFrameIdentifier()
          Return this frame's FrameIdentifier.
 void getRegister(Register reg, long offset, int length, byte[] bytes, int start)
          Extracts OFFSET:LENGTH bytes of REGISTER storing them from START in BYTES (in the target's byte order).
 Symbol getSymbol()
          Return this frame's symbol; UNKNOWN if there is no symbol.
 Frame getUndecoratedFrame()
           
 void setRegister(Register reg, long offset, int length, byte[] bytes, int start)
          Stores BYTES from START into REGISTER at OFFSET:LENGTH (in the target's byte order).
 
Methods inherited from class frysk.stack.Frame
getInner, getLibraryName, getOuter, getRegister, getRegisterValue, getTask, level, printLevel, toPrint, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getAddress

public long getAddress()
Description copied from class: Frame
Returns the program counter for this StackFrame.

Specified by:
getAddress in class Frame
Returns:
The program counter for this StackFrame.

getAdjustedAddress

public long getAdjustedAddress()
Description copied from class: Frame
Returns the pre-call PC for this non-interrupted StackFrame.

Specified by:
getAdjustedAddress in class Frame
Returns:
The pre-call program counter for this StackFrame.

getRegister

public void getRegister(Register reg,
                        long offset,
                        int length,
                        byte[] bytes,
                        int start)
Description copied from class: Frame
Extracts OFFSET:LENGTH bytes of REGISTER storing them from START in BYTES (in the target's byte order).

Specified by:
getRegister in class Frame

setRegister

public void setRegister(Register reg,
                        long offset,
                        int length,
                        byte[] bytes,
                        int start)
Description copied from class: Frame
Stores BYTES from START into REGISTER at OFFSET:LENGTH (in the target's byte order).

Specified by:
setRegister in class Frame

getFrameIdentifier

public FrameIdentifier getFrameIdentifier()
Description copied from class: Frame
Return this frame's FrameIdentifier.

Specified by:
getFrameIdentifier in class Frame

getSymbol

public Symbol getSymbol()
Description copied from class: Frame
Return this frame's symbol; UNKNOWN if there is no symbol.

Specified by:
getSymbol in class Frame

getUndecoratedFrame

public Frame getUndecoratedFrame()