1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-10 09:45:39 +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; package org.eclipse.cdt.debug.mi.core;
import org.eclipse.cdt.debug.mi.core.event.MIEvent; 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 * Event Thread blocks on the event Queue, wakes up
@ -31,6 +32,9 @@ public class EventThread extends Thread {
} catch (InterruptedException e) { } catch (InterruptedException e) {
//e.printStackTrace(); //e.printStackTrace();
} }
if (event instanceof MIStoppedEvent) {
processSuspendedEvent((MIStoppedEvent)event);
}
try { try {
if (event != null) { if (event != null) {
session.notifyObservers(event); 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();
}
} }