#NEWLINE# def removeBreakpoint( self , addr ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# logging . debug ( 'remove bkpt at 0x%x' , addr ) #NEWLINE# addr = ( addr & ( ~ 1 ) ) #NEWLINE# bp = self . breakpoints . pop ( addr ) #NEWLINE# if ( bp . type == Target . BREAKPOINT_SW ) : #NEWLINE# #INDENT# self . removeSoftwareBreakpoint ( bp ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( bp . type == Target . BREAKPOINT_HW ) : #NEWLINE# #INDENT# self . removeHardwareBreakpoint ( bp . addr ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise RuntimeError ( ( 'Unknown breakpoint type %d' % self . type ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except KeyError : #NEWLINE# #INDENT# logging . debug ( ( "Tried to remove breakpoint 0x%08x that wasn't set" % addr ) )