diff options
author | Jim Ingham <jingham@apple.com> | 2017-03-28 23:25:34 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2017-03-28 23:25:34 +0000 |
commit | c8732ba3fbc72db55171157b105c71738562019d (patch) | |
tree | e67d1db70d680a55462744e8cd2dc7f131015a1f /lldb/examples | |
parent | b70a07b9795e7cd043c56b2610d85cbfc99d5ec6 (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-x | lldb/examples/python/crashlog.py | 6 |
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: |