LLDB bindings: make compatible with Python 2.7.x and 3.x
Issue #KT-28926:fixed
This commit is contained in:
committed by
Dmitriy Dolovov
parent
cfd6b80e6a
commit
16d8c5e55f
@@ -155,7 +155,7 @@ class KonanHelperProvider(lldb.SBSyntheticValueProvider):
|
|||||||
def _deref_or_obj_summary(self, index):
|
def _deref_or_obj_summary(self, index):
|
||||||
value = self._values[index]
|
value = self._values[index]
|
||||||
if not value:
|
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
|
return None
|
||||||
if check_type_info(value):
|
if check_type_info(value):
|
||||||
return kotlin_object_type_summary(value, None)
|
return kotlin_object_type_summary(value, None)
|
||||||
@@ -276,7 +276,7 @@ class KonanProxyTypeProvider:
|
|||||||
|
|
||||||
def print_this_command(debugger, command, result, internal_dict):
|
def print_this_command(debugger, command, result, internal_dict):
|
||||||
pthis = lldb.frame.FindVariable('<this>')
|
pthis = lldb.frame.FindVariable('<this>')
|
||||||
print pthis
|
print(pthis)
|
||||||
|
|
||||||
def __lldb_init_module(debugger, _):
|
def __lldb_init_module(debugger, _):
|
||||||
__FACTORY['object'] = lambda x: KonanObjectSyntheticProvider(x)
|
__FACTORY['object'] = lambda x: KonanObjectSyntheticProvider(x)
|
||||||
|
|||||||
Reference in New Issue
Block a user