use of com.google.security.zynamics.binnavi.debug.models.breakpoints.Breakpoint in project binnavi by google.
the class CBreakpointRemoveFunctions method removeAllView.
/**
* Removes all breakpoints of a given breakpoint manager that belong to a given view.
*
* @param manager The breakpoints manager whose breakpoints are removed.
* @param view The view that decides what breakpoints are removed.
*/
private static void removeAllView(final BreakpointManager manager, final INaviView view) {
final Set<BreakpointAddress> addresses = new HashSet<BreakpointAddress>();
for (int i = 0; i < manager.getNumberOfBreakpoints(BreakpointType.REGULAR); i++) {
final BreakpointAddress address = manager.getBreakpoint(BreakpointType.REGULAR, i).getAddress();
if (CViewHelpers.containsAddress(view, address.getAddress())) {
addresses.add(address);
}
}
CGraphDebugger.removeBreakpoints(addresses, manager);
}
Aggregations