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:
parent
9ddba7f91f
commit
6131f091aa
2 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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() )
|
||||
|
|
Loading…
Add table
Reference in a new issue