[Lldb-commits] [lldb] r356670 - Portable exception value access across Python 2 / Python 3
Serge Guelton via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 21 07:39:56 PDT 2019
Author: serge_sans_paille
Date: Thu Mar 21 07:39:55 2019
New Revision: 356670
URL: http://llvm.org/viewvc/llvm-project?rev=356670&view=rev
Log:
Portable exception value access across Python 2 / Python 3
Differential Revision: https://reviews.llvm.org/D59583
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=356670&r1=356669&r2=356670&view=diff
==============================================================================
--- lldb/trunk/examples/python/crashlog.py (original)
+++ lldb/trunk/examples/python/crashlog.py Thu Mar 21 07:39:55 2019
@@ -284,7 +284,7 @@ class CrashLog(symbolication.Symbolicato
try:
plist_root = plistlib.readPlistFromString(s)
except:
- print(("Got exception: ", sys.exc_value, " handling dsymForUUID output: \n", s))
+ print(("Got exception: ", sys.exc_info()[1], " handling dsymForUUID output: \n", s))
raise
if plist_root:
plist = plist_root[uuid_str]
More information about the lldb-commits
mailing list