mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-18 11:29:37 +08:00
GP-6572: Forget breakoints using index rather than (possibly closed) trace.
This commit is contained in:
+1
-6
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user