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

Method invoke

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

Source from the content-addressed store, hash-verified

162 super().__init__("mge-up", gdb.COMMAND_USER)
163
164 def invoke(self, arg, from_tty):
165 frame = gdb.selected_frame()
166 if frame is None:
167 print("Unable to find older dispatch frame")
168 return
169 frame = frame.older()
170 while frame is not None and not is_mge_frame(frame):
171 frame = frame.older()
172 if frame is None:
173 print("Unable to find older dispatch frame")
174 return
175 frame.select()
176 print_mge_frame(frame)
177
178
179class MegengineDown(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