[debug][bindings][python] fix issue KonanObjectSyntheticProvider::get_child_index with calculation index by name
This commit is contained in:
committed by
Stanislav Erokhin
parent
a19bf5c48e
commit
77c992b7bb
@@ -314,7 +314,7 @@ class KonanObjectSyntheticProvider(KonanHelperProvider):
|
||||
def get_child_index(self, name):
|
||||
log(lambda: "KonanObjectSyntheticProvider::get_child_index({:#x}, {})".format(self._valobj.unsigned, name))
|
||||
index = self._children.index(name)
|
||||
return self._read_value(index)
|
||||
return index
|
||||
|
||||
def get_child_at_index(self, index):
|
||||
log(lambda: "KonanObjectSyntheticProvider::get_child_at_index({:#x}, {})".format(self._valobj.unsigned, index))
|
||||
|
||||
Reference in New Issue
Block a user