Author: davide
Date: Mon Jul 8 18:05:12 2019
New Revision: 365416
URL: http://llvm.org/viewvc/llvm-project?rev=365416&view=rev
Log:
[crashlog] Fix a mismatch between bytes and strings.
The functions in read_plist() want bytes as input, not
strings.
<rdar://problem/52600712>
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=365416&r1=365415&r2=365416&view=diff
==============================================================================
--- lldb/trunk/examples/python/crashlog.py (original)
+++ lldb/trunk/examples/python/crashlog.py Mon Jul 8 18:05:12 2019
@@ -300,7 +300,7 @@ class CrashLog(symbolication.Symbolicato
if os.path.exists(self.dsymForUUIDBinary):
dsym_for_uuid_command = '%s %s' % (
self.dsymForUUIDBinary, uuid_str)
- s = subprocess.check_output(dsym_for_uuid_command,
shell=True).decode("utf-8")
+ s = subprocess.check_output(dsym_for_uuid_command, shell=True)
if s:
try:
plist_root = read_plist(s)
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits