21 fRec = valobj.GetChildMemberWithName('fRec')
22
23 fLength = fRec.GetChildMemberWithName('fLength')
24 if fLength.GetValueAsUnsigned(0) <= 0:
25 return '""'
26 fBeginningOfData = fRec.GetChildMemberWithName('fBeginningOfData')
27
28
29 string = fBeginningOfData.AddressOf().GetPointeeData(0, fLength.GetValueAsUnsigned(0))
30
31 string.Append(lldb.SBData.CreateDataFromInt(0))
32
33 error = lldb.SBError()
34 string = string.GetString(error, 0)
35 if error.Fail():
36 return '<error: ' + error.GetCString() + '>'
37 else:
38 return '"' + string + '"'
39
40
def SkString_SummaryProvider(valobj, dict)