Skip to main content
summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorJames Blackburn2009-06-02 15:39:38 -0400
committerJames Blackburn2009-06-02 15:39:38 -0400
commitbd657f12b8cfbb790961109db29334f47925fe9e (patch)
tree3b939a1c0b34dcaebbf0af551de24550b223a46d /debug
parent00fc40ee0b7f434f5c6f3ae6cda93f8e34628ed4 (diff)
downloadorg.eclipse.cdt-bd657f12b8cfbb790961109db29334f47925fe9e.tar.gz
org.eclipse.cdt-bd657f12b8cfbb790961109db29334f47925fe9e.tar.xz
org.eclipse.cdt-bd657f12b8cfbb790961109db29334f47925fe9e.zip
Bug 214463 - disabled watchpoints aren't disabled during launch
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java
index 829566de0f..c98c6000d2 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java
@@ -774,6 +774,7 @@ public class BreakpointManager extends Manager {
boolean access = watchpoint.isReadType() && watchpoint.isWriteType();
boolean read = ! watchpoint.isWriteType() && watchpoint.isReadType();
String expression = watchpoint.getDerivedExpression();
+ boolean enable = watchpoint.isEnabled();
MISession miSession = target.getMISession();
CommandFactory factory = miSession.getCommandFactory();
@@ -820,6 +821,20 @@ public class BreakpointManager extends Manager {
throw new CDIException(CdiResources.getString("cdi.Common.No_answer")); //$NON-NLS-1$
}
}
+ if (!enable) {
+ int[] numbers = new int[1];
+ numbers[0] = no;
+ MIBreakDisable breakDisable = factory.createMIBreakDisable(numbers);
+ try {
+ miSession.postCommand(breakDisable);
+ MIInfo disableInfo = breakDisable.getMIInfo();
+ if (disableInfo == null) {
+ throw new CDIException(CdiResources.getString("cdi.Common.No_answer")); //$NON-NLS-1$
+ }
+ } catch (MIException e) {
+ throw new MI2CDIException(e);
+ }
+ }
// how to deal with threads ???
} catch (MIException e) {
throw new MI2CDIException(e);

Back to the top