MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / invoke

Method invoke

scripts/gdb/commands.py:183–195  ·  view source on GitHub ↗
(self, arg, from_tty)

Source from the content-addressed store, hash-verified

181 super().__init__("mge-down", gdb.COMMAND_USER)
182
183 def invoke(self, arg, from_tty):
184 frame = gdb.selected_frame()
185 if frame is None:
186 print("Unable to find newer dispatch frame")
187 return
188 frame = frame.newer()
189 while frame is not None and not is_mge_frame(frame):
190 frame = frame.newer()
191 if frame is None:
192 print("Unable to find newer dispatch frame")
193 return
194 frame.select()
195 print_mge_frame(frame)
196
197
198class MegengineInfo(gdb.Command):

Callers

nothing calls this directly

Calls 4

printFunction · 0.85
is_mge_frameFunction · 0.85
print_mge_frameFunction · 0.85
selectMethod · 0.45

Tested by

no test coverage detected