proxygen
gdb.GetFiberXMethodWorker Class Reference
Inheritance diagram for gdb.GetFiberXMethodWorker:

Public Member Functions

def get_arg_types (self)
 
def get_result_type (self)
 
def __call__ (self, args)
 

Detailed Description

Definition at line 59 of file gdb.py.

Member Function Documentation

def gdb.GetFiberXMethodWorker.__call__ (   self,
  args 
)

Definition at line 66 of file gdb.py.

References gdb.fiber_manager_active_fibers(), and cpp.ast.next().

66  def __call__(self, *args):
67  fm = args[0]
68  index = int(args[1])
69  fiber = next(itertools.islice(fiber_manager_active_fibers(fm),
70  index,
71  None))
72  if fiber is None:
73  raise gdb.GdbError("Index out of range")
74  else:
75  return fiber
76 
77 
def fiber_manager_active_fibers(fm)
Definition: gdb.py:91
def __call__(self, args)
Definition: gdb.py:66
def next(obj)
Definition: ast.py:58
def gdb.GetFiberXMethodWorker.get_arg_types (   self)

Definition at line 60 of file gdb.py.

60  def get_arg_types(self):
61  return gdb.lookup_type('int')
62 
def get_arg_types(self)
Definition: gdb.py:60
def gdb.GetFiberXMethodWorker.get_result_type (   self)

Definition at line 63 of file gdb.py.

63  def get_result_type(self):
64  return gdb.lookup_type('int')
65 
def get_result_type(self)
Definition: gdb.py:63

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