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 1
1
package org.javacs.ktda.core
2
2
3
3
import org.javacs.ktda.core.event.DebuggeeEventBus
4
- import org.javacs.ktda.util.ObservableList
5
4
import java.io.InputStream
6
5
import java.io.OutputStream
7
6
8
7
/* * A debuggee that is launched upon construction */
9
8
interface Debuggee {
10
- val threads: ObservableList <DebuggeeThread >
9
+ val threads: List <DebuggeeThread >
11
10
val eventBus: DebuggeeEventBus
12
11
val stdin: OutputStream ?
13
12
get() = null
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class JDIDebuggee(
33
33
private val sourcesRoots : Set <Path >,
34
34
private val context : DebugContext
35
35
) : Debuggee, JDISessionContext {
36
- override val threads = ObservableList <DebuggeeThread >()
36
+ override var threads = emptyList <DebuggeeThread >()
37
37
override val eventBus: VMEventBus
38
38
override val pendingStepRequestThreadIds = mutableSetOf<Long >()
39
39
override val stdin: OutputStream ?
@@ -55,7 +55,9 @@ class JDIDebuggee(
55
55
hookBreakpoints()
56
56
}
57
57
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
+ }
59
61
60
62
private fun hookBreakpoints () {
61
63
context.breakpointManager.also { manager ->
You can’t perform that action at this time.
0 commit comments