diff 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
line wrap: on
line diff
--- a/llvm/utils/lldbDataFormatters.py	Mon May 25 11:50:15 2020 +0900
+++ b/llvm/utils/lldbDataFormatters.py	Mon May 25 11:55:54 2020 +0900
@@ -118,7 +118,9 @@
     num_elements = valobj.GetNumChildren()
     res = "\""
     for i in range(0, num_elements):
-      res += valobj.GetChildAtIndex(i).GetValue().strip("'")
+        c = valobj.GetChildAtIndex(i).GetValue()
+        if c:
+            res += c.strip("'")
     res += "\""
     return res