brintos

brintos / llvm-project-archived public Read only

0
0
Text · 313 B · 07681b3 Raw
16 lines · python
1import lldb2 3 4def summary(valobj, dict):5    return f"[{valobj.GetChildAtIndex(0).GetValue()}]"6 7 8def __lldb_init_module(debugger, dict):9    typeName = "Box<.*$"10    debugger.HandleCommand(11        'type summary add -x "'12        + typeName13        + '" --python-function '14        + f"{__name__}.summary"15    )16