1
0
Fork 0
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:
Alain Magloire 2003-04-25 20:50:05 +00:00
parent 8a98a043aa
commit 7c38ceb5da

View file

@ -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();
}
}