summaryrefslogtreecommitdiff
path: root/lldb/examples
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
commitc8732ba3fbc72db55171157b105c71738562019d (patch)
treee67d1db70d680a55462744e8cd2dc7f131015a1f /lldb/examples
parentb70a07b9795e7cd043c56b2610d85cbfc99d5ec6 (diff)
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.
Diffstat (limited to 'lldb/examples')
-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: