LLDB bindings: make compatible with Python 2.7.x and 3.x

Issue #KT-28926:fixed
This commit is contained in:
Dmitriy Dolovov
2018-12-24 21:21:10 +07:00
committed by Dmitriy Dolovov
parent cfd6b80e6a
commit 16d8c5e55f
+2 -2
View File
@@ -155,7 +155,7 @@ class KonanHelperProvider(lldb.SBSyntheticValueProvider):
def _deref_or_obj_summary(self, index):
value = self._values[index]
if not value:
print "_deref_or_obj_summary: value none, index:{}, type:{}".format(index, self._children_types[index])
print("_deref_or_obj_summary: value none, index:{}, type:{}".format(index, self._children_types[index]))
return None
if check_type_info(value):
return kotlin_object_type_summary(value, None)
@@ -276,7 +276,7 @@ class KonanProxyTypeProvider:
def print_this_command(debugger, command, result, internal_dict):
pthis = lldb.frame.FindVariable('<this>')
print pthis
print(pthis)
def __lldb_init_module(debugger, _):
__FACTORY['object'] = lambda x: KonanObjectSyntheticProvider(x)