From 9dab919dc424de6948b0ce96babca1864d2e59f0 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Fri, 2 Oct 2020 12:26:49 +0200 Subject: [PATCH] [debug][bindings][python] don't build synthetic for null values (KT-41291) --- llvmDebugInfoC/src/scripts/konan_lldb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvmDebugInfoC/src/scripts/konan_lldb.py b/llvmDebugInfoC/src/scripts/konan_lldb.py index b5398abf74a..952e11b1711 100644 --- a/llvmDebugInfoC/src/scripts/konan_lldb.py +++ b/llvmDebugInfoC/src/scripts/konan_lldb.py @@ -103,7 +103,10 @@ def kotlin_object_type_summary(lldb_val, internal_dict = {}): return NULL return lldb_val.GetValueAsSigned() + if lldb_val.unsigned == 0: + return NULL tip = internal_dict["type_info"] if "type_info" in internal_dict.keys() else type_info(lldb_val) + if not tip: return fallback