mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 15:05:36 +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:
parent
5946594715
commit
317776f413
2 changed files with 16 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -503,24 +503,22 @@ public class CBreakpointManager implements IBreakpointManagerListener, ICDIEvent
|
|||
}
|
||||
|
||||
private void removeAllBreakpoints() {
|
||||
ICDIBreakpoint[] cdiBreakpoints = getBreakpointMap().getAllCDIBreakpoints();
|
||||
ICDITarget cdiTarget = getCDITarget();
|
||||
if ( cdiBreakpoints.length > 0 ) {
|
||||
try {
|
||||
cdiTarget.deleteAllBreakpoints();
|
||||
}
|
||||
catch( CDIException e ) {
|
||||
// Do we care ?
|
||||
CDebugCorePlugin.log( e.getMessage() );
|
||||
}
|
||||
ICBreakpoint[] breakpoints = getBreakpointMap().getAllCBreakpoints();
|
||||
for( int i = 0; i < breakpoints.length; ++i ) {
|
||||
try {
|
||||
cdiTarget.deleteBreakpoints( cdiBreakpoints );
|
||||
((CBreakpoint)breakpoints[i]).decrementInstallCount();
|
||||
}
|
||||
catch( CDIException e ) {
|
||||
catch( CoreException e ) {
|
||||
CDebugCorePlugin.log( e.getMessage() );
|
||||
}
|
||||
ICBreakpoint[] breakpoints = getBreakpointMap().getAllCBreakpoints();
|
||||
for( int i = 0; i < breakpoints.length; ++i ) {
|
||||
try {
|
||||
((CBreakpoint)breakpoints[i]).decrementInstallCount();
|
||||
}
|
||||
catch( CoreException e ) {
|
||||
CDebugCorePlugin.log( e.getMessage() );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue