[Lldb-commits] [lldb] r367260 - [Symbolication] Fix unicode compatibility between 2 and 3.

Davide Italiano via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 29 14:25:38 PDT 2019


Author: davide
Date: Mon Jul 29 14:25:37 2019
New Revision: 367260

URL: http://llvm.org/viewvc/llvm-project?rev=367260&view=rev
Log:
[Symbolication] Fix unicode compatibility between 2 and 3.

Triples are always ASCII for now, but we were handed out a
unicode object.

<rdar://problem/53592772>

Modified:
    lldb/trunk/examples/python/symbolication.py

Modified: lldb/trunk/examples/python/symbolication.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/symbolication.py?rev=367260&r1=367259&r2=367260&view=diff
==============================================================================
--- lldb/trunk/examples/python/symbolication.py (original)
+++ lldb/trunk/examples/python/symbolication.py Mon Jul 29 14:25:37 2019
@@ -380,7 +380,7 @@ class Image:
                     return None
                 resolved_path = self.get_resolved_path()
                 self.module = target.AddModule(
-                    resolved_path, self.arch, uuid_str, self.symfile)
+                    resolved_path, str(self.arch), uuid_str, self.symfile)
             if not self.module:
                 return 'error: unable to get module for (%s) "%s"' % (
                     self.arch, self.get_resolved_path())




More information about the lldb-commits mailing list