public Breakpoint clearBreakpoint ( int bpno ) { Breakpoint old = breakpoints . remove ( bpno ) ; if ( old != null ) { PStm stmt = findStatement ( old . location . getFile ( ) , old . location . getStartLine ( ) ) ; if ( stmt != null ) { BreakpointManager . setBreakpoint ( stmt , new Breakpoint ( stmt . getLocation ( ) ) ) ; } else { PExp exp = findExpression ( old . location . getFile ( ) , old . location . getStartLine ( ) ) ; assert exp != null : "Cannot locate old breakpoint?" ; BreakpointManager . setBreakpoint ( exp , new Breakpoint ( exp . getLocation ( ) ) ) ; } } return old ; // null if not found }
Clear the breakpoint given by the number .