Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorMikhail Khodjaiants2005-08-25 18:26:34 +0000
committerMikhail Khodjaiants2005-08-25 18:26:34 +0000
commit485f7b6bf00673bd4ffd16b85b00707c8acec19a (patch)
tree861bc426ef147cd4261337b2525cbca126dd4c0f /debug
parentb6b18c2e07612cdd44e30aef293a426cf5947f8f (diff)
downloadorg.eclipse.cdt-485f7b6bf00673bd4ffd16b85b00707c8acec19a.tar.gz
org.eclipse.cdt-485f7b6bf00673bd4ffd16b85b00707c8acec19a.tar.xz
org.eclipse.cdt-485f7b6bf00673bd4ffd16b85b00707c8acec19a.zip
Bug 108028: Duplicate watchpointes.
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/ChangeLog4
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java11
2 files changed, 15 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog
index 68753510242..db6addac643 100644
--- a/debug/org.eclipse.cdt.debug.core/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.core/ChangeLog
@@ -1,3 +1,7 @@
+2005-08-25 Mikhail Khodjaiants
+ Bug 108028: Duplicate watchpointes.
+ * CBreakpointManager.java
+
2005-08-23 Mikhail Khodjaiants
Bug 107787: Casting variable to array causes NPE.
* CIndexedValue.java
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java
index f018520f9dc..525ef317938 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java
@@ -191,6 +191,17 @@ public class CBreakpointManager implements IBreakpointsListener, IBreakpointMana
return sourceHandle.equals( ((ICLineBreakpoint)breakpoint).getSourceHandle() ) && location.getLineNumber() == ((ICLineBreakpoint)breakpoint).getLineNumber();
}
}
+ if ( breakpoint instanceof ICWatchpoint && cdiBreakpoint instanceof ICDIWatchpoint ) {
+ try {
+ ICWatchpoint watchpoint = (ICWatchpoint)breakpoint;
+ ICDIWatchpoint cdiWatchpoint = (ICDIWatchpoint)cdiBreakpoint;
+ return ( watchpoint.getExpression().compareTo( cdiWatchpoint.getWatchExpression() ) == 0 &&
+ watchpoint.isReadType() == cdiWatchpoint.isReadType() &&
+ watchpoint.isWriteType() == cdiWatchpoint.isWriteType() );
+ }
+ catch( CDIException e ) {
+ }
+ }
}
catch( CoreException e ) {
}

Back to the top