projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
331297c
)
Print the error if dsymForUUID sometimes produces bad plists.
author
Jim Ingham
<jingham@apple.com>
Tue, 28 Mar 2017 23:25:34 +0000
(23:25 +0000)
committer
Jim Ingham
<jingham@apple.com>
Tue, 28 Mar 2017 23:25:34 +0000
(23:25 +0000)
Not much we can do about it but at least we can print the bad
plist and the error.
llvm-svn: 298958
lldb/examples/python/crashlog.py
patch
|
blob
|
history
diff --git
a/lldb/examples/python/crashlog.py
b/lldb/examples/python/crashlog.py
index
abd6aaa
..
7270f60
100755
(executable)
--- 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: