mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-17 21:25:58 +02:00
Bug 108028: Duplicate watchpointes.
This commit is contained in:
parent
b6b18c2e07
commit
485f7b6bf0
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2005-08-25 Mikhail Khodjaiants
|
||||||
|
Bug 108028: Duplicate watchpointes.
|
||||||
|
* CBreakpointManager.java
|
||||||
|
|
||||||
2005-08-23 Mikhail Khodjaiants
|
2005-08-23 Mikhail Khodjaiants
|
||||||
Bug 107787: Casting variable to array causes NPE.
|
Bug 107787: Casting variable to array causes NPE.
|
||||||
* CIndexedValue.java
|
* CIndexedValue.java
|
||||||
|
|
|
@ -191,6 +191,17 @@ public class CBreakpointManager implements IBreakpointsListener, IBreakpointMana
|
||||||
return sourceHandle.equals( ((ICLineBreakpoint)breakpoint).getSourceHandle() ) && location.getLineNumber() == ((ICLineBreakpoint)breakpoint).getLineNumber();
|
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 ) {
|
catch( CoreException e ) {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue