(self, arg)
[~process] bo <address> - make a code breakpoint one-shot
        [~thread] bo <address> - make a hardware breakpoint one-shot
        [~process] bo <address-address> - make a memory breakpoint one-shot
        [~process] bo <address> <size> - make a memory breakpoint one-shot
[~process] bo <address> - make a code breakpoint one-shot
        [~thread] bo <address> - make a hardware breakpoint one-shot
        [~process] bo <address-address> - make a memory breakpoint one-shot
        [~process] bo <address> <size> - make a memory breakpoint one-shot
[ ~process ] bo <address > - make a code breakpoint one - shot [ ~thread ] bo <address > - make a hardware breakpoint one - shot [ ~process ] bo <address - address > - make a memory breakpoint one - shot [ ~process ] bo <address > <size > - make a memory breakpoint one - shot
def do_bo(self, arg):
        """
        [~process] bo <address> - make a code breakpoint one-shot
        [~thread] bo <address> - make a hardware breakpoint one-shot
        [~process] bo <address-address> - make a memory breakpoint one-shot
        [~process] bo <address> <size> - make a memory breakpoint one-shot
        """
        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_one_shot_hardware_breakpoint(tid, address)
                    found = True
            if pid is not None:
                if debug.has_code_breakpoint(pid, address):
                    debug.enable_one_shot_code_breakpoint(pid, address)
                    found = True
        else:
            if debug.has_page_breakpoint(pid, address):
                debug.enable_one_shot_page_breakpoint(pid, address)
                found = True
        if not found:
            print("Error: breakpoint not found.")
def do_bo ( 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_one_shot_hardware_breakpoint ( tid , address ) found = True if pid is not None : if debug . has_code_breakpoint ( pid , address ) : debug . enable_one_shot_code_breakpoint ( pid , address ) found = True else : if debug . has_page_breakpoint ( pid , address ) : debug . enable_one_shot_page_breakpoint ( pid , address ) found = True if not found : print ( "Error: breakpoint not found." )