1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00

Extracted the main part of the 'breakpointAdded' method into a separate method to avoid double checking.

This commit is contained in:
Mikhail Khodjaiants 2003-11-26 23:02:55 +00:00
parent 9ddba7f91f
commit 6131f091aa
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-11-26 Mikhail Khodjaiants
Extracted the main part of the 'breakpointAdded' method into a separate method to avoid
double checking.
* CDebugTarget.java
2003-11-26 Mikhail Khodjaiants
Cleanup.
* CDebugModel.java

View file

@ -357,7 +357,7 @@ public class CDebugTarget extends CDebugElement
{
}
}
breakpointAdded( bps[i] );
breakpointAdded0( bps[i] );
}
}
}
@ -679,6 +679,13 @@ public class CDebugTarget extends CDebugElement
!getBreakpointManager().isTargetBreakpoint( (ICBreakpoint)breakpoint ) ||
!isAvailable() )
return;
breakpointAdded0( breakpoint );
}
private void breakpointAdded0( IBreakpoint breakpoint )
{
if ( !isAvailable() )
return;
if ( breakpoint instanceof ICAddressBreakpoint && !getBreakpointManager().supportsAddressBreakpoint( (ICAddressBreakpoint)breakpoint ) )
return;
if ( getConfiguration().supportsBreakpoints() )