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:
parent
eea82af3a1
commit
537b8d2c4c
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue