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:
parent
8a98a043aa
commit
7c38ceb5da
1 changed files with 11 additions and 0 deletions
|
@ -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();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue