Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Chandra2020-12-14 12:14:42 +0000
committerSarika Sinha2020-12-22 05:17:56 +0000
commit90cd8ab52c7932deb45480b7b310fc2ebf8d6d86 (patch)
tree2dd343909bfba667599f9d159d3837b7769c814f
parentfaac167ebedddbe5b6d407c4039667d284b2a0b4 (diff)
downloadeclipse.platform.debug-Y20201225-1200.tar.gz
eclipse.platform.debug-Y20201225-1200.tar.xz
eclipse.platform.debug-Y20201225-1200.zip
breakpoints Change-Id: Id43bf1d7a276d755598b341b2d877bfdfcb81137 Signed-off-by: Vikas Chandra <Vikas.Chandra@in.ibm.com>
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java
index 6d8539d66..ae1f02c32 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2018 IBM Corporation and others.
+ * Copyright (c) 2000, 2020 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -503,6 +503,8 @@ public class BreakpointManager implements IBreakpointManager, IResourceChangeLis
for (IBreakpoint breakpoint : remove) {
bps.remove(breakpoint);
fMarkersToBreakpoints.remove(breakpoint.getMarker());
+ // If the breakpoint is a trigger point, remove else do nothing.
+ removeTriggerPoint(breakpoint);
}
fireUpdate(remove, null, REMOVED);
refreshTriggerpointDisplay();
@@ -602,6 +604,10 @@ public class BreakpointManager implements IBreakpointManager, IResourceChangeLis
added.add(breakpoint);
getBreakpoints0().add(breakpoint);
fMarkersToBreakpoints.put(breakpoint.getMarker(), breakpoint);
+ if (breakpoint instanceof ITriggerPoint && ((ITriggerPoint) breakpoint).isTriggerPoint()) {
+ addTriggerPoint(breakpoint);
+ }
+
} else {
// need to update the 'registered' and/or 'group' attributes
update.add(breakpoint);

Back to the top