4 def Struct_SummaryFormatter(valobj, internal_dict):
5 return 'A data formatter at work'
7 category = lldb.debugger.CreateCategory("TSLSFormatters")
8 category.SetEnabled(True)
9 summary = lldb.SBTypeSummary.CreateWithFunctionName(
10 "tslsformatters.Struct_SummaryFormatter", lldb.eTypeOptionCascade)
11 spec = lldb.SBTypeNameSpecifier("Struct", False)
12 category.AddTypeSummary(spec, summary)