Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Ryall2006-08-17 23:44:10 +0000
committerKen Ryall2006-08-17 23:44:10 +0000
commit90ad8fb3521c41f246d8e24eaeb9dcb3d57cfdc8 (patch)
tree4fb6b107c764649147404d96aca029a12c1430c6 /debug/org.eclipse.cdt.debug.core
parentbcb893cbff3ee7b1ea98f39134a699404331f55c (diff)
downloadorg.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.java7
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);
}
}

Back to the top