(self, arg)
[~process] be <address> - enable a code breakpoint
        [~thread] be <address> - enable a hardware breakpoint
        [~process] be <address-address> - enable a memory breakpoint
        [~process] be <address> <size> - enable a memory breakpoint
[~process] be <address> - enable a code breakpoint
        [~thread] be <address> - enable a hardware breakpoint
        [~process] be <address-address> - enable a memory breakpoint
        [~process] be <address> <size> - enable a memory breakpoint
[ ~process ] be <address > - enable a code breakpoint [ ~thread ] be <address > - enable a hardware breakpoint [ ~process ] be <address - address > - enable a memory breakpoint [ ~process ] be <address > <size > - enable a memory breakpoint
def do_be(self, arg):
        """
        [~process] be <address> - enable a code breakpoint
        [~thread] be <address> - enable a hardware breakpoint
        [~process] be <address-address> - enable a memory breakpoint
        [~process] be <address> <size> - enable a memory breakpoint
        """
        token_list = self.split_tokens(arg, 1, 2)
        pid, tid, address, size = self.input_breakpoint(token_list)
        debug = self.debug
        found = False
        if size is None:
            if tid is not None:
                if debug.has_hardware_breakpoint(tid, address):
                    debug.enable_hardware_breakpoint(tid, address)
                    found = True
            if pid is not None:
                if debug.has_code_breakpoint(pid, address):
                    debug.enable_code_breakpoint(pid, address)
                    found = True
        else:
            if debug.has_page_breakpoint(pid, address):
                debug.enable_page_breakpoint(pid, address)
                found = True
        if not found:
            print("Error: breakpoint not found.")
def do_be ( self , arg ) : token_list = self . split_tokens ( arg , 1 , 2 ) pid , tid , address , size = self . input_breakpoint ( token_list ) debug = self . debug found = False if size is None : if tid is not None : if debug . has_hardware_breakpoint ( tid , address ) : debug . enable_hardware_breakpoint ( tid , address ) found = True if pid is not None : if debug . has_code_breakpoint ( pid , address ) : debug . enable_code_breakpoint ( pid , address ) found = True else : if debug . has_page_breakpoint ( pid , address ) : debug . enable_page_breakpoint ( pid , address ) found = True if not found : print ( "Error: breakpoint not found." )