comparison llvm/utils/lldbDataFormatters.py @ 173:0572611fdcc8 llvm10 llvm12

reorgnization done
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 11:55:54 +0900
parents 1d019706d866
children 2e18cbf3894f
comparison
equal deleted inserted replaced
172:9fbae9c8bf63 173:0572611fdcc8
116 116
117 def SmallStringSummaryProvider(valobj, internal_dict): 117 def SmallStringSummaryProvider(valobj, internal_dict):
118 num_elements = valobj.GetNumChildren() 118 num_elements = valobj.GetNumChildren()
119 res = "\"" 119 res = "\""
120 for i in range(0, num_elements): 120 for i in range(0, num_elements):
121 res += valobj.GetChildAtIndex(i).GetValue().strip("'") 121 c = valobj.GetChildAtIndex(i).GetValue()
122 if c:
123 res += c.strip("'")
122 res += "\"" 124 res += "\""
123 return res 125 return res
124 126
125 def StringRefSummaryProvider(valobj, internal_dict): 127 def StringRefSummaryProvider(valobj, internal_dict):
126 if valobj.GetNumChildren() == 2: 128 if valobj.GetNumChildren() == 2: