diff options
author | Ken Ryall | 2006-08-17 23:44:10 +0000 |
---|---|---|
committer | Ken Ryall | 2006-08-17 23:44:10 +0000 |
commit | 90ad8fb3521c41f246d8e24eaeb9dcb3d57cfdc8 (patch) | |
tree | 4fb6b107c764649147404d96aca029a12c1430c6 /debug/org.eclipse.cdt.debug.core | |
parent | bcb893cbff3ee7b1ea98f39134a699404331f55c (diff) | |
download | org.eclipse.cdt-90ad8fb3521c41f246d8e24eaeb9dcb3d57cfdc8.tar.gz org.eclipse.cdt-90ad8fb3521c41f246d8e24eaeb9dcb3d57cfdc8.tar.xz org.eclipse.cdt-90ad8fb3521c41f246d8e24eaeb9dcb3d57cfdc8.zip |
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.
Diffstat (limited to 'debug/org.eclipse.cdt.debug.core')
-rw-r--r-- | debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java index 173b81472c6..5f7083bcdac 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java @@ -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); } } |