Package vivisect :: Package symboliks :: Module callconv :: Class SymbolikCallingConvention
[hide private]
[frames] | no frames]

Class SymbolikCallingConvention

source code


use as a mixin to an existing envi calling convention.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_dealloc(self, delta, argc) source code
 
getSymbolikArgs(self, emu, argv, update=False)
Used when symbolik emulation discovers a call while doing emulation.
source code
 
setSymbolikArgs(self, emu, argv)
Setup the emulator for emulation of a call to a function with this calling convention and the specified arguments in argv.
source code
 
setSymbolikReturn(self, emu, sym, argv)
Set the fofx() return state in the calling emulator to reflect that state introduced by our callee.
source code
 
getSymbolikReturn(self, emu) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

getSymbolikArgs(self, emu, argv, update=False)

source code 

Used when symbolik emulation discovers a call while doing emulation. This allows per-arch-calling-convention argument parsing for updates to fofx effects...

setSymbolikArgs(self, emu, argv)

source code 

Setup the emulator for emulation of a call to a function with this
calling convention and the specified arguments in argv.

Example:
    cconv.setSymbolikArgs(emu, [sym1, sym2])

setSymbolikReturn(self, emu, sym, argv)

source code 

Set the fofx() return state in the calling emulator to reflect that
state introduced by our callee.

Example:
    cconv.setSymbolikReturn(emu, Var('foo', self._psize),