From 98b2f3feecd2df94861e6af2e55bb8d3f2bd8ae9 Mon Sep 17 00:00:00 2001 From: SvyatoslavScherbina Date: Tue, 17 Nov 2020 18:10:54 +0300 Subject: [PATCH] Update DEBUGGING.md --- kotlin-native/DEBUGGING.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/kotlin-native/DEBUGGING.md b/kotlin-native/DEBUGGING.md index a5c2d59c803..6f66bc8db96 100644 --- a/kotlin-native/DEBUGGING.md +++ b/kotlin-native/DEBUGGING.md @@ -197,10 +197,12 @@ Process 4985 launched: './program.kexe' (x86_64) (lldb) fr var (int) x = 1 (int) y = 2 -(ObjHeader *) p = Point(x=1, y=2) +(ObjHeader *) p = [x: ..., y: ...] (lldb) p p -(ObjHeader *) $2 = Point(x=1, y=2) -(lldb) +(ObjHeader *) $2 = [x: ..., y: ...] +(lldb) script lldb.frame.FindVariable("p").GetChildMemberWithName("x").Dereference().GetValue() +'1' +(lldb) ``` @@ -245,8 +247,8 @@ Process 80496 stopped 12 } Process 80496 launched: './program.kexe' (x86_64) -(lldb) expression -- Konan_DebugPrint(a_variable) -(a_variable) one is 1(KInt) $0 = 0 +(lldb) expression -- (int32_t)Konan_DebugPrint(a_variable) +(a_variable) one is 1(int32_t) $0 = 0 (lldb) ```