[Lldb-commits] [lldb] r365416 - [crashlog] Fix a mismatch between bytes and strings.

Davide Italiano via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 8 18:05:13 PDT 2019


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)




More information about the lldb-commits mailing list