GP-6572: Forget breakoints using index rather than (possibly closed) trace.

This commit is contained in:
Dan
2026-03-25 19:36:11 +00:00
parent f71e1f6035
commit 77d9ad7d9e
@@ -486,12 +486,7 @@ public class DebuggerLogicalBreakpointServicePlugin extends Plugin
}
protected void forgetAllBreakpoints(RemoveCollector r) {
Collection<TraceBreakpointLocation> toForget = new ArrayList<>();
for (AddressRange range : trace.getBaseAddressFactory().getAddressSet()) {
toForget.addAll(
trace.getBreakpointManager().getBreakpointsIntersecting(Lifespan.ALL, range));
}
for (TraceBreakpointLocation tb : toForget) {
for (TraceBreakpointLocation tb : List.copyOf(logicalByBreakpoint.keySet())) {
forgetTraceBreakpoint(r, tb);
}
}