From 130a8dd6f27db4f726c95703605a1daab74b26a9 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Fri, 13 Mar 2020 14:40:04 +0100 Subject: [PATCH] [debug][bindings] fix string detection --- llvmDebugInfoC/src/scripts/konan_lldb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvmDebugInfoC/src/scripts/konan_lldb.py b/llvmDebugInfoC/src/scripts/konan_lldb.py index 4ab077b3123..19d5c23f2ec 100644 --- a/llvmDebugInfoC/src/scripts/konan_lldb.py +++ b/llvmDebugInfoC/src/scripts/konan_lldb.py @@ -66,7 +66,7 @@ def is_instance_of(addr, typeinfo): return evaluate("(bool)IsInstance({}, {})".format(addr, typeinfo)).GetValue() == "true" def is_string_or_array(value): - return evaluate("(int)IsInstance({0}, {1}) ? 1 : ((int)Konan_DebugIsArray({0}) ? 2 : 0)".format(lldb_val_to_ptr(value), _symbol_loaded_address('ktype:kotlin.String'))).unsigned + return evaluate("(int)IsInstance({0}, {1}) ? 1 : ((int)Konan_DebugIsArray({0}) ? 2 : 0)".format(lldb_val_to_ptr(value), _symbol_loaded_address('kclass:kotlin.String'))).unsigned def type_info(value): """This method checks self-referencing of pointer of first member of TypeInfo including case when object has an