From 23f48663161414d0a9d599852859513da02dbd14 Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Mon, 8 Jun 2020 13:11:36 +0300 Subject: [PATCH] Fix Null and primitives printing --- llvmDebugInfoC/src/scripts/konan_lldb.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/llvmDebugInfoC/src/scripts/konan_lldb.py b/llvmDebugInfoC/src/scripts/konan_lldb.py index 41fdd2049bd..06c28178676 100644 --- a/llvmDebugInfoC/src/scripts/konan_lldb.py +++ b/llvmDebugInfoC/src/scripts/konan_lldb.py @@ -99,11 +99,9 @@ def kotlin_object_type_summary(lldb_val, internal_dict = {}): log(lambda: "kotlin_object_type_summary({:#x})".format(lldb_val.unsigned)) fallback = lldb_val.GetValue() if str(lldb_val.type) != "struct ObjHeader *": - return fallback - - ptr = lldb_val_to_ptr(lldb_val) - if ptr is None: - return fallback + if lldb_val.GetValue() is None: + return NULL + return lldb_val.GetValueAsSigned() tip = internal_dict["type_info"] if "type_info" in internal_dict.keys() else type_info(lldb_val) if not tip: