[Lldb-commits] [lldb] r355572 - crashlog.py: Catch exception from subprocess.
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 6 16:41:51 PST 2019
Author: adrian
Date: Wed Mar 6 16:41:51 2019
New Revision: 355572
URL: http://llvm.org/viewvc/llvm-project?rev=355572&view=rev
Log:
crashlog.py: Catch exception from subprocess.
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=355572&r1=355571&r2=355572&view=diff
==============================================================================
--- lldb/trunk/examples/python/crashlog.py (original)
+++ lldb/trunk/examples/python/crashlog.py Wed Mar 6 16:41:51 2019
@@ -223,7 +223,11 @@ class CrashLog(symbolication.Symbolicato
"""Class that represents a binary images in a darwin crash log"""
dsymForUUIDBinary = os.path.expanduser('~rc/bin/dsymForUUID')
if not os.path.exists(dsymForUUIDBinary):
- dsymForUUIDBinary = subprocess.check_output('which dsymForUUID', shell=True)
+ try:
+ dsymForUUIDBinary = subprocess.check_output('which dsymForUUID',
+ shell=True)
+ except:
+ dsymForUUIDBinary = ""
dwarfdump_uuid_regex = re.compile(
'UUID: ([-0-9a-fA-F]+) \(([^\(]+)\) .*')
More information about the lldb-commits
mailing list