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:
parent
bcb893cbff
commit
90ad8fb352
1 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue