GDB (xrefs)
|
Public Member Functions | |
__init__ (self, method_function, arg_types) | |
get_arg_types (self) | |
__call__ (self, *args) | |
__init__ (self, method_function, arg_types) | |
get_arg_types (self) | |
__call__ (self, *args) | |
![]() | |
get_result_type (self, *args) | |
get_result_type (self, *args) | |
Protected Attributes | |
_arg_types | |
_method_function | |
Definition at line 157 of file xmethod.py.
gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker.__init__ | ( | self, | |
method_function, | |||
arg_types ) |
Definition at line 158 of file xmethod.py.
gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker.__init__ | ( | self, | |
method_function, | |||
arg_types ) |
gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker.__call__ | ( | self, | |
* | args ) |
Invoke the xmethod. Args: args: Arguments to the method. Each element of the tuple is a gdb.Value object. The first element is the 'this' pointer value. Returns: A gdb.Value corresponding to the value returned by the xmethod. Returns 'None' if the method does not return anything.
Reimplemented from gdb.xmethod.XMethodWorker.
Definition at line 165 of file xmethod.py.
References gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker._method_function, and gdb.xmethod.SimpleXMethodMatcher._method_function.
gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker.__call__ | ( | self, | |
* | args ) |
Invoke the xmethod. Args: args: Arguments to the method. Each element of the tuple is a gdb.Value object. The first element is the 'this' pointer value. Returns: A gdb.Value corresponding to the value returned by the xmethod. Returns 'None' if the method does not return anything.
Reimplemented from gdb.xmethod.XMethodWorker.
Definition at line 165 of file xmethod.py.
References gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker._method_function, and gdb.xmethod.SimpleXMethodMatcher._method_function.
gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker.get_arg_types | ( | self | ) |
Return arguments types of an xmethod. A sequence of gdb.Type objects corresponding to the arguments of the xmethod are returned. If the xmethod takes no arguments, then 'None' or an empty sequence is returned. If the xmethod takes only a single argument, then a gdb.Type object or a sequence with a single gdb.Type element is returned.
Reimplemented from gdb.xmethod.XMethodWorker.
Definition at line 162 of file xmethod.py.
References gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker._arg_types, and gdb.xmethod.SimpleXMethodMatcher._arg_types.
gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker.get_arg_types | ( | self | ) |
Return arguments types of an xmethod. A sequence of gdb.Type objects corresponding to the arguments of the xmethod are returned. If the xmethod takes no arguments, then 'None' or an empty sequence is returned. If the xmethod takes only a single argument, then a gdb.Type object or a sequence with a single gdb.Type element is returned.
Reimplemented from gdb.xmethod.XMethodWorker.
Definition at line 162 of file xmethod.py.
References gdb.xmethod.SimpleXMethodMatcher.SimpleXMethodWorker._arg_types, and gdb.xmethod.SimpleXMethodMatcher._arg_types.
|
protected |
|
protected |