[Lldb-commits] [lldb] r298958 - Print the error if dsymForUUID sometimes produces bad plists.
Jim Ingham via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 28 16:25:34 PDT 2017
Author: jingham
Date: Tue Mar 28 18:25:34 2017
New Revision: 298958
URL: http://llvm.org/viewvc/llvm-project?rev=298958&view=rev
Log:
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.
Modified:
lldb/trunk/examples/python/crashlog.py
Modified: lldb/trunk/examples/python/crashlog.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/crashlog.py?rev=298958&r1=298957&r2=298958&view=diff
==============================================================================
--- lldb/trunk/examples/python/crashlog.py (original)
+++ lldb/trunk/examples/python/crashlog.py Tue Mar 28 18:25:34 2017
@@ -259,7 +259,11 @@ class CrashLog(symbolication.Symbolicato
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:
More information about the lldb-commits
mailing list