mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-08 09:35:23 +02:00
Extracted the main part of the 'breakpointAdded' method into a separate method to avoid double checking.
This commit is contained in:
parent
8b1194ebfb
commit
b50eb6955d
2 changed files with 14 additions and 2 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-10 Mikhail Khodjaiants
|
2003-11-10 Mikhail Khodjaiants
|
||||||
Ensure that all breakpoint creation and modification operations are running in the UI thread.
|
Ensure that all breakpoint creation and modification operations are running in the UI thread.
|
||||||
* CBreakpointManager.java
|
* CBreakpointManager.java
|
||||||
|
|
|
@ -369,7 +369,7 @@ public class CDebugTarget extends CDebugElement
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
breakpointAdded( (ICBreakpoint)bps[i] );
|
breakpointAdded0( bps[i] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -691,8 +691,15 @@ public class CDebugTarget extends CDebugElement
|
||||||
!getBreakpointManager().isTargetBreakpoint( (ICBreakpoint)breakpoint ) ||
|
!getBreakpointManager().isTargetBreakpoint( (ICBreakpoint)breakpoint ) ||
|
||||||
!isAvailable() )
|
!isAvailable() )
|
||||||
return;
|
return;
|
||||||
if ( breakpoint instanceof ICAddressBreakpoint && !getBreakpointManager().supportsAddressBreakpoint( (ICAddressBreakpoint)breakpoint ) )
|
breakpointAdded0( breakpoint );
|
||||||
|
}
|
||||||
|
|
||||||
|
private void breakpointAdded0( IBreakpoint breakpoint )
|
||||||
|
{
|
||||||
|
if ( !isAvailable() )
|
||||||
return;
|
return;
|
||||||
|
if ( breakpoint instanceof ICAddressBreakpoint && !getBreakpointManager().supportsAddressBreakpoint( (ICAddressBreakpoint)breakpoint ) )
|
||||||
|
return;
|
||||||
if ( getConfiguration().supportsBreakpoints() )
|
if ( getConfiguration().supportsBreakpoints() )
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
Loading…
Add table
Reference in a new issue