Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2005-07-26 21:52:28 +0000
committerMikhail Khodjaiants2005-07-26 21:52:28 +0000
commit8adb497f927fdc24a2071ceec4cf08b3f2bde839 (patch)
tree46a47cc983a749a4c66ca55a54e6bf8deb3fb935
parentf2bd352b06cf4a092b9ae6849308490cd9ef7a70 (diff)
downloadorg.eclipse.cdt-8adb497f927fdc24a2071ceec4cf08b3f2bde839.tar.gz
org.eclipse.cdt-8adb497f927fdc24a2071ceec4cf08b3f2bde839.tar.xz
org.eclipse.cdt-8adb497f927fdc24a2071ceec4cf08b3f2bde839.zip
Bug 105234: Wrong watchpoint type.
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/ChangeLog4
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java2
2 files changed, 5 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
index ab7559b0168..ff6ca5bf57e 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
@@ -1,3 +1,7 @@
+2005-07-26 Mikhail Khodjaiants
+ Bug 105234: Wrong watchpoint type.
+ * cdi/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java
+
2005-07-07 Alain Magloire
Try to suspend the target before disconnecting.
* cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java
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 1250bbded3a..ba16379342a 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
@@ -759,7 +759,7 @@ public class BreakpointManager extends Manager {
public void setWatchpoint(Watchpoint wp) throws CDIException {
Target target = (Target)wp.getTarget();
- boolean access = wp.isReadType() || wp.isWriteType();
+ boolean access = wp.isReadType() && wp.isWriteType();
boolean read = wp.isReadType() && ! wp.isWriteType();
String expression = wp.getWatchExpression();
MISession miSession = target.getMISession();

Back to the top