File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
adapter/src/main/kotlin/org/javacs/ktda Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11package org.javacs.ktda.core
22
33import org.javacs.ktda.core.event.DebuggeeEventBus
4- import org.javacs.ktda.util.ObservableList
54import java.io.InputStream
65import java.io.OutputStream
76
87/* * A debuggee that is launched upon construction */
98interface Debuggee {
10- val threads: ObservableList <DebuggeeThread >
9+ val threads: List <DebuggeeThread >
1110 val eventBus: DebuggeeEventBus
1211 val stdin: OutputStream ?
1312 get() = null
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class JDIDebuggee(
3333 private val sourcesRoots : Set <Path >,
3434 private val context : DebugContext
3535) : Debuggee, JDISessionContext {
36- override val threads = ObservableList <DebuggeeThread >()
36+ override var threads = emptyList <DebuggeeThread >()
3737 override val eventBus: VMEventBus
3838 override val pendingStepRequestThreadIds = mutableSetOf<Long >()
3939 override val stdin: OutputStream ?
@@ -55,7 +55,9 @@ class JDIDebuggee(
5555 hookBreakpoints()
5656 }
5757
58- override fun updateThreads () = threads.setAll(vm.allThreads().map { JDIThread (it, this ) })
58+ override fun updateThreads () {
59+ threads = vm.allThreads().map { JDIThread (it, this ) }
60+ }
5961
6062 private fun hookBreakpoints () {
6163 context.breakpointManager.also { manager ->
You can’t perform that action at this time.
0 commit comments