This class acts as an action callback for code breakpoints set at the
beginning of a function. It automatically retrieves the parameters from
the stack, sets a breakpoint at the return address and retrieves the
return value from the function call.
|
__init__(self,
preCB=None,
postCB=None,
paramCount=0)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
__push_params(self,
tid,
params)
Remembers the arguments tuple for the last call to the hooked
function from this thread. |
source code
|
|
|
__pop_params(self,
tid)
Forgets the arguments tuple for the last call to the hooked function
from this thread. |
source code
|
|
tuple( arg, arg, arg... )
|
get_params(self,
tid)
Returns the parameters found in the stack when the hooked function
was last called by this thread. |
source code
|
|
list of tuple( arg, arg, arg... )
|
get_params_stack(self,
tid)
Returns the parameters found in the stack each time the hooked
function was called by this thread and haven't returned yet. |
source code
|
|
|
hook(self,
debug,
pid,
address)
Installs the function hook at a given process and address. |
source code
|
|
|
unhook(self,
debug,
pid,
address)
Removes the function hook at a given process and address. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|