1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +02:00

If the breakpoint manager is disabled disable the breakpoint using the same method (async exec) as doHandleLocationBreakpointCreatedEvent. Otherwise it's async thread may enable the breakpoint again after this code runs.

This commit is contained in:
Ken Ryall 2006-08-17 23:44:10 +00:00
parent bcb893cbff
commit 90ad8fb352

View file

@ -407,12 +407,7 @@ public class CBreakpointManager implements IBreakpointsListener, IBreakpointMana
else if ( cdiBreakpoint instanceof ICDILocationBreakpoint )
doHandleLocationBreakpointCreatedEvent( (ICDILocationBreakpoint)cdiBreakpoint );
if ( !cdiBreakpoint.isTemporary() && !DebugPlugin.getDefault().getBreakpointManager().isEnabled() ) {
try {
cdiBreakpoint.setEnabled( false );
}
catch( CDIException e ) {
// ignore
}
changeBreakpointPropertiesOnTarget(cdiBreakpoint, new Boolean(false), null);
}
}