class documentation
class Prototype(object):
Information about a function prototype and its calling convention. Can be used to read arguments and return value at given points in the trace.
Method | __init__ |
No summary |
Method | call |
Get helper to acces arguments and return value on a `call` transition. |
Method | read |
Read arguments at given context. |
Method | read |
Read ret value at given context. |
Property | calling |
No summary |
Property | function |
No summary |
Method | _try |
Undocumented |
Instance Variable | _callconv |
Undocumented |
Instance Variable | _function |
Undocumented |
def __init__(self, function_signature, calling_convention):
Parameters | |
functionFunction | function from a parsed C or C++ source. |
calling_CallConvHelper | the calling convention to use to resolve arguments and return value. |
def call_site_values(self, call_tr):
Get helper to acces arguments and return value on a `call` transition.
Parameters | |
callTransition | `call` transition reven2.trace.Transition |
Returns | |
CallSiteValues | CallSiteValues helper |
def read_args(self, call_ctx):
Read arguments at given context.
Parameters | |
callContext | context reven2.trace.Context after the call |
Returns | |
_Iterator[ | iterator of ResolvedArgumentValue |
def read_ret(self, ret_ctx):
Read ret value at given context.
Parameters | |
retContext | context reven2.trace.Context after the ret. |
Returns | |
_Optional[ | ResolvedRetValue or None. |
def _try_deref_or_read_value(self, ctx, target, parsed_type):
Undocumented
Parameters | |
ctx:Context | Undocumented |
target:_AnyChunkType | Undocumented |
parsedType | Undocumented |
Returns | |
_Any | Undocumented |