summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2017-03-28 23:25:34 +0000
committerJim Ingham <jingham@apple.com>2017-03-28 23:25:34 +0000
commit9f44d460d9041bfc2b3cfc27b68b5246ec2c6942 (patch)
tree1385df84b973c585d30d949bf4889c3c9c4d0609
parent331297c62e028190c8e7c4053d9a7d434875c3e6 (diff)
downloadbcm5719-llvm-9f44d460d9041bfc2b3cfc27b68b5246ec2c6942.tar.gz
bcm5719-llvm-9f44d460d9041bfc2b3cfc27b68b5246ec2c6942.zip
Print the error if dsymForUUID sometimes produces bad plists.
Not much we can do about it but at least we can print the bad plist and the error. llvm-svn: 298958
-rwxr-xr-xlldb/examples/python/crashlog.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py
index abd6aaae778..7270f60f437 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -259,7 +259,11 @@ class CrashLog(symbolication.Symbolicator):
self.dsymForUUIDBinary, uuid_str)
s = commands.getoutput(dsym_for_uuid_command)
if s:
- plist_root = plistlib.readPlistFromString(s)
+ try:
+ plist_root = plistlib.readPlistFromString(s)
+ except:
+ print("Got exception: ", sys.exc_value, " handling dsymForUUID output: \n", s)
+ raise
if plist_root:
plist = plist_root[uuid_str]
if plist:
OpenPOWER on IntegriCloud