blob: 80e153cf89cf6fb912c6d1659ddb3855c558b8c4 [file]
(lldb) target create <path to executable>
Current executable set to <path to executable>.
(lldb) settings set stop-disassembly-display never
(lldb) command script import <path to lldb script>
(lldb) b kt42208-2.kt:21
Breakpoint 1: 3 locations.
(lldb) r
Process <process id> launched: <path to executable>
Process <process id> stopped
* thread #<thread id>, stop reason = breakpoint 1.1
frame #0: <frame pc> lldb_kt42208WithVariableAndNest-9dc1903c.kexe`kfun:#foo(){}kotlin.Function0<kotlin.Unit> at kt42208-2.kt:21:20
18 // aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
19 class A
20 val list = mutableListOf<A>()
-> 21 inline fun foo() = { ->
^
22 listAddA()
23 }
24 fun listAddA() {
(lldb) bt
* thread #<thread id>, stop reason = breakpoint 1.1
* frame #0: <frame pc> lldb_kt42208WithVariableAndNest-9dc1903c.kexe`kfun:#foo(){}kotlin.Function0<kotlin.Unit> at kt42208-2.kt:21:20
frame #1: <frame pc> lldb_kt42208WithVariableAndNest-9dc1903c.kexe`kfun:#main(){} at kt42208-1.kt:12:13
(lldb) c
Process <process id> resuming
Process <process id> stopped
* thread #<thread id>, stop reason = breakpoint 1.3
frame #0: <frame pc> lldb_kt42208WithVariableAndNest-9dc1903c.kexe`kfun:main$$inlined$foo$1.main$$inlined$foo$1#$<bridge-DN>invoke(_this=main$$inlined$foo$1<value id>){}(){}kotlin.Any? at kt42208-2.kt:21:20
18 // aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
19 class A
20 val list = mutableListOf<A>()
-> 21 inline fun foo() = { ->
^
22 listAddA()
23 }
24 fun listAddA() {
(lldb) bt
* thread #<thread id>, stop reason = breakpoint 1.3
* frame #0: <frame pc> lldb_kt42208WithVariableAndNest-9dc1903c.kexe`kfun:main$$inlined$foo$1.main$$inlined$foo$1#$<bridge-DN>invoke(_this=main$$inlined$foo$1<value id>){}(){}kotlin.Any? at kt42208-2.kt:21:20
frame #1: <frame pc> lldb_kt42208WithVariableAndNest-9dc1903c.kexe`kfun:kotlin.Function0#invoke(){}1:0 at [K][Suspend]Functions:1:1
frame #2: <frame pc> lldb_kt42208WithVariableAndNest-9dc1903c.kexe`kfun:#main(){} at kt42208-1.kt:13:5
(lldb) c
Process <process id> resuming
Process <process id> stopped
* thread #<thread id>, stop reason = breakpoint 1.2
frame #0: <frame pc> lldb_kt42208WithVariableAndNest-9dc1903c.kexe`kfun:main$$inlined$foo$1.main$$inlined$foo$1#invoke(_this=main$$inlined$foo$1<value id>){} at kt42208-2.kt:21:20
18 // aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
19 class A
20 val list = mutableListOf<A>()
-> 21 inline fun foo() = { ->
^
22 listAddA()
23 }
24 fun listAddA() {
(lldb) bt
* thread #<thread id>, stop reason = breakpoint 1.2
* frame #0: <frame pc> lldb_kt42208WithVariableAndNest-9dc1903c.kexe`kfun:main$$inlined$foo$1.main$$inlined$foo$1#invoke(_this=main$$inlined$foo$1<value id>){} at kt42208-2.kt:21:20
frame #1: <frame pc> lldb_kt42208WithVariableAndNest-9dc1903c.kexe`kfun:main$$inlined$foo$1.main$$inlined$foo$1#$<bridge-DN>invoke(_this=main$$inlined$foo$1<value id>){}(){}kotlin.Any? at kt42208-2.kt:21:20
frame #2: <frame pc> lldb_kt42208WithVariableAndNest-9dc1903c.kexe`kfun:kotlin.Function0#invoke(){}1:0 at [K][Suspend]Functions:1:1
frame #3: <frame pc> lldb_kt42208WithVariableAndNest-9dc1903c.kexe`kfun:#main(){} at kt42208-1.kt:13:5
(lldb) q