1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Fix a null dereference in the LLDB data formatters.

This commit is contained in:
Adrian Prantl 2020-02-25 16:42:53 -08:00
parent 02cfbd1931
commit 1760eceffa

View File

@ -118,7 +118,9 @@ def SmallStringSummaryProvider(valobj, internal_dict):
num_elements = valobj.GetNumChildren() num_elements = valobj.GetNumChildren()
res = "\"" res = "\""
for i in range(0, num_elements): for i in range(0, num_elements):
res += valobj.GetChildAtIndex(i).GetValue().strip("'") c = valobj.GetChildAtIndex(i).GetValue()
if c:
res += c.strip("'")
res += "\"" res += "\""
return res return res