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

2004-11-24 Alain Magloire

Use the ICDITarget.deleteAllBreakpoints() for speed.
	* org/eclipse/cdt/debug/internal/core/CBreakpointManager.java
This commit is contained in:
Alain Magloire 2004-11-24 21:18:08 +00:00
parent 5946594715
commit 317776f413
2 changed files with 16 additions and 13 deletions

View file

@ -1,3 +1,8 @@
2004-11-24 Alain Magloire
Use the ICDITarget.deleteAllBreakpoints() for speed.
* org/eclipse/cdt/debug/internal/core/CBreakpointManager.java
2004-11-24 Mikhail Khodjaiants
Do not request to dispose local variables when the target is resumed.
* CExpression.java

View file

@ -503,13 +503,12 @@ public class CBreakpointManager implements IBreakpointManagerListener, ICDIEvent
}
private void removeAllBreakpoints() {
ICDIBreakpoint[] cdiBreakpoints = getBreakpointMap().getAllCDIBreakpoints();
ICDITarget cdiTarget = getCDITarget();
if ( cdiBreakpoints.length > 0 ) {
try {
cdiTarget.deleteBreakpoints( cdiBreakpoints );
cdiTarget.deleteAllBreakpoints();
}
catch( CDIException e ) {
// Do we care ?
CDebugCorePlugin.log( e.getMessage() );
}
ICBreakpoint[] breakpoints = getBreakpointMap().getAllCBreakpoints();
@ -522,7 +521,6 @@ public class CBreakpointManager implements IBreakpointManagerListener, ICDIEvent
}
}
}
}
private void setLocationBreakpointOnTarget( final ICBreakpoint breakpoint, final ICDITarget target, final ICDILocation location, final ICDICondition condition, final boolean enabled ) {
DebugPlugin.getDefault().asyncExec( new Runnable() {