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

Function eval_on_val

scripts/gdb/commands.py:24–29  ·  view source on GitHub ↗
(val, eval_str)

Source from the content-addressed store, hash-verified

22
23
24def eval_on_val(val, eval_str):
25 if val.type.code == gdb.TYPE_CODE_REF:
26 val = val.referenced_value()
27 address = val.address
28 eval_str = "(*({}){}){}".format(address.type, address, eval_str)
29 return gdb.parse_and_eval(eval_str)
30
31
32def is_subclass_of(subclass, baseclass):

Callers 1

print_mge_frameFunction · 0.70

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected