From 77c992b7bb8c8fed72e37264be961bccdfe05141 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Tue, 17 Nov 2020 15:34:07 +0100 Subject: [PATCH] [debug][bindings][python] fix issue KonanObjectSyntheticProvider::get_child_index with calculation index by name --- kotlin-native/llvmDebugInfoC/src/scripts/konan_lldb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-native/llvmDebugInfoC/src/scripts/konan_lldb.py b/kotlin-native/llvmDebugInfoC/src/scripts/konan_lldb.py index 955f9507161..6cc22328d2a 100644 --- a/kotlin-native/llvmDebugInfoC/src/scripts/konan_lldb.py +++ b/kotlin-native/llvmDebugInfoC/src/scripts/konan_lldb.py @@ -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))