GDB (xrefs)
Loading...
Searching...
No Matches
gdbarch_types.Function Class Reference
Inheritance diagram for gdbarch_types.Function:
gdbarch_types.Component gdbarch_types.Method

Public Member Functions

 __init__ (self, *, str name, str type, List[Tuple[str, str]] params, Optional[str] comment=None, bool predicate=False, Optional[str] predefault=None, Optional[str] postdefault=None, Union[bool, str] invalid=True, Optional[str] printer=None, Optional[List[str]] param_checks=None, Optional[List[str]] result_checks=None, bool implement=True)
 
 ftype (self)
 
 param_list (self)
 
 set_list (self)
 
 actuals (self)
 
- Public Member Functions inherited from gdbarch_types.Component
 get_predicate (self)
 

Public Attributes

 params
 
- Public Attributes inherited from gdbarch_types.Component
 name = name
 
str type = type
 
 printer = printer
 
 comment = comment
 
 predicate = predicate
 
 predefault = predefault
 
 postdefault = postdefault
 
 invalid = invalid
 
 params = params or []
 
 param_checks = param_checks
 
 result_checks = result_checks
 
 implement = implement
 
str predefault = f"gdbarch->{self.name} != {self.predefault}"
 

Detailed Description

Definition at line 115 of file gdbarch_types.py.

Constructor & Destructor Documentation

◆ __init__()

gdbarch_types.Function.__init__ ( self,
* ,
str name,
str type,
List[Tuple[str, str]] params,
Optional[str] comment = None,
bool predicate = False,
Optional[str] predefault = None,
Optional[str] postdefault = None,
Union[bool, str] invalid = True,
Optional[str] printer = None,
Optional[List[str]] param_checks = None,
Optional[List[str]] result_checks = None,
bool implement = True )

Reimplemented from gdbarch_types.Component.

Definition at line 118 of file gdbarch_types.py.

References gdbarch_types.Function.__init__().

Referenced by gdbarch_types.Function.__init__().

Member Function Documentation

◆ actuals()

gdbarch_types.Function.actuals ( self)

Reimplemented in gdbarch_types.Method.

Definition at line 164 of file gdbarch_types.py.

References gdbarch_types.Component.params, and gdbarch_types.Function.params.

◆ ftype()

gdbarch_types.Function.ftype ( self)

Definition at line 149 of file gdbarch_types.py.

◆ param_list()

gdbarch_types.Function.param_list ( self)

Reimplemented in gdbarch_types.Method.

Definition at line 153 of file gdbarch_types.py.

◆ set_list()

gdbarch_types.Function.set_list ( self)
Return the formal parameter list of the caller function,
as a string.  This list includes the gdbarch.

Definition at line 157 of file gdbarch_types.py.

References gdbarch_types.join_params(), gdbarch_types.Component.params, and gdbarch_types.Function.params.

Referenced by gdbarch_types.Method.param_list().

Member Data Documentation

◆ params

gdbarch_types.Function.params

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