MCPcopy Create free account
hub / github.com/alibaba/async_simple / __init__

Method __init__

dbg/LazyStack.py:96–104  ·  view source on GitHub ↗
(self, frame, coro_frame)

Source from the content-addressed store, hash-verified

94
95class StacklessCoroutineFrameDecorator(FrameDecorator):
96 def __init__(self, frame, coro_frame):
97 super(StacklessCoroutineFrameDecorator, self).__init__(frame)
98 self.coro_frame = coro_frame
99
100 self.resume_func = dereference(self.coro_frame.resume_addr)
101 self.resume_func_block = gdb.block_for_pc(self.resume_func)
102 if self.resume_func_block == None:
103 raise Exception('Not stackless coroutine.')
104 self.line_info = gdb.find_pc_line(self.resume_func)
105
106 def address(self):
107 return self.resume_func

Callers

nothing calls this directly

Calls 2

dereferenceFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected