mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
when Suspended call MIInferior.update().
This commit is contained in:
parent
8a98a043aa
commit
7c38ceb5da
1 changed files with 11 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
package org.eclipse.cdt.debug.mi.core;
|
||||
|
||||
import org.eclipse.cdt.debug.mi.core.event.MIEvent;
|
||||
import org.eclipse.cdt.debug.mi.core.event.MIStoppedEvent;
|
||||
|
||||
/**
|
||||
* Event Thread blocks on the event Queue, wakes up
|
||||
|
@ -31,6 +32,9 @@ public class EventThread extends Thread {
|
|||
} catch (InterruptedException e) {
|
||||
//e.printStackTrace();
|
||||
}
|
||||
if (event instanceof MIStoppedEvent) {
|
||||
processSuspendedEvent((MIStoppedEvent)event);
|
||||
}
|
||||
try {
|
||||
if (event != null) {
|
||||
session.notifyObservers(event);
|
||||
|
@ -40,4 +44,11 @@ public class EventThread extends Thread {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
void processSuspendedEvent(MIStoppedEvent stopped) {
|
||||
// give a chance also to the underlying inferior.
|
||||
session.getMIInferior().update();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue