1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 15:05:36 +02:00

Bug 248440 Possible to set line breakpoint twice on the same external file

This commit is contained in:
James Blackburn 2009-04-14 20:03:21 +00:00
parent eea82af3a1
commit 537b8d2c4c

View file

@ -554,10 +554,8 @@ public class CDIDebugModel {
} }
ICLineBreakpoint breakpoint = (ICLineBreakpoint)breakpoints[i]; ICLineBreakpoint breakpoint = (ICLineBreakpoint)breakpoints[i];
if ( sameSourceHandle( sourceHandle, breakpoint.getSourceHandle() ) ) { if ( sameSourceHandle( sourceHandle, breakpoint.getSourceHandle() ) ) {
if ( breakpoint.getMarker().getResource().equals( resource ) ) { if ( breakpoint.getLineNumber() == lineNumber ) {
if ( breakpoint.getLineNumber() == lineNumber ) { return breakpoint;
return breakpoint;
}
} }
} }
} }