1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-08 01:25:23 +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 22:54:29 +00:00
parent 8b1194ebfb
commit b50eb6955d
2 changed files with 14 additions and 2 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-10 Mikhail Khodjaiants
Ensure that all breakpoint creation and modification operations are running in the UI thread.
* CBreakpointManager.java

View file

@ -369,7 +369,7 @@ public class CDebugTarget extends CDebugElement
{
}
}
breakpointAdded( (ICBreakpoint)bps[i] );
breakpointAdded0( bps[i] );
}
}
}
@ -691,6 +691,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() )