From d2f10d5cf126ccd81ee73b850d2c10417916eed1 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Tue, 9 Dec 2003 16:11:35 +0000 Subject: [PATCH] Do not throw an exception if the target is interrupted --- .../src/org/eclipse/cdt/debug/mi/core/MIInferior.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIInferior.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIInferior.java index 198bf3a459b..8ecb0b45c1c 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIInferior.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIInferior.java @@ -191,10 +191,6 @@ public class MIInferior extends Process { } } } - // If we've failed throw an exception up. - if (state == RUNNING) { - throw new MIException("Failed to interrupt"); - } } else { // Try the exec-interrupt; this will be for "gdb --async" // CommandFactory factory = session.getCommandFactory(); @@ -204,7 +200,11 @@ public class MIInferior extends Process { // MIInfo info = interrupt.getMIInfo(); // } catch (MIException e) { // } - throw new MIException("Interruption no supported"); + //throw new MIException("Interruption no supported"); + } + // If we've failed throw an exception up. + if (state == RUNNING) { + throw new MIException("Failed to interrupt"); } }