mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
2005-07-07 Alain Magloire
Try to suspend the target before disconnecting. * cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java
This commit is contained in:
parent
c162527605
commit
c1fa89c040
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2005-07-07 Alain Magloire
|
||||
Try to suspend the target before disconnecting.
|
||||
* cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java
|
||||
|
||||
2005-06-29 Alain Magloire
|
||||
Fix PR 100602
|
||||
* mi/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java
|
||||
|
|
|
@ -45,6 +45,7 @@ import org.eclipse.cdt.debug.mi.core.MISession;
|
|||
import org.eclipse.cdt.debug.mi.core.RxThread;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.BreakpointManager;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.CdiResources;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.EventManager;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.ExpressionManager;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.MI2CDIException;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.MemoryManager;
|
||||
|
@ -569,6 +570,15 @@ public class Target extends SessionObject implements ICDITarget {
|
|||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDITarget#disconnect()
|
||||
*/
|
||||
public void disconnect() throws CDIException {
|
||||
// if Target is running try to suspend first.
|
||||
if (isRunning()) {
|
||||
try {
|
||||
((EventManager)getSession().getEventManager()).allowProcessingEvents(false);
|
||||
suspend();
|
||||
} finally {
|
||||
((EventManager)getSession().getEventManager()).allowProcessingEvents(true);
|
||||
}
|
||||
}
|
||||
CommandFactory factory = miSession.getCommandFactory();
|
||||
MITargetDetach detach = factory.createMITargetDetach();
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue