The Pedigree Project  0.1
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
X86StackFrame Class Reference

#include <StackFrame.h>

+ Inheritance diagram for X86StackFrame:
+ Collaboration diagram for X86StackFrame:

Public Member Functions

 X86StackFrame (const ProcessorState &State, uintptr_t basePointer, LargeStaticString mangledSymbol)
 
 ~X86StackFrame ()
 
- Public Member Functions inherited from StackFrameBase
void prettyPrint (HugeStaticString &buf)
 
 StackFrameBase (const ProcessorState &State, uintptr_t basePointer, LargeStaticString mangledSymbol)
 
virtual ~StackFrameBase ()
 

Static Public Member Functions

static void construct (ProcessorState &state, uintptr_t returnAddress, unsigned int nParams,...)
 
- Static Public Member Functions inherited from StackFrameBase
static void construct (ProcessorState &state, uintptr_t returnAddress, unsigned int nParams,...)
 

Private Member Functions

virtual uintptr_t getParameter (size_t n)
 

Additional Inherited Members

- Protected Attributes inherited from StackFrameBase
symbol_t m_Symbol
 
const ProcessorState & m_State
 
uintptr_t m_BasePointer
 

Detailed Description

x86 StackFrame

Definition at line 31 of file x86/StackFrame.h.

Constructor & Destructor Documentation

X86StackFrame::X86StackFrame ( const ProcessorState &  State,
uintptr_t  basePointer,
LargeStaticString  mangledSymbol 
)
inline

Creates a stack frame based on the given processor state and also the given symbol name (mangled).

Definition at line 37 of file x86/StackFrame.h.

X86StackFrame::~X86StackFrame ( )
inline

The destructor does nothing

Definition at line 44 of file x86/StackFrame.h.

References getParameter().

Member Function Documentation

uintptr_t X86StackFrame::getParameter ( size_t  n)
privatevirtual

Returns the n'th 32-bit parameter in the stack frame.

Check for borked-ness.

Todo:
better way to do this.

Implements StackFrameBase.

Definition at line 25 of file x86/StackFrame.cc.

References StackFrameBase::m_BasePointer.

Referenced by ~X86StackFrame().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: