(self, pc=None)
return self._single_step
Steps one instruction.

        Yields:
            Each iteration, yields a tuple of (address, instruction_size).=

            A StopIteration is raised if a fault or syscall or call instruction
            is encountered.
Steps one instruction.
Steps one instruction .
def single_step(self, pc=None):
        """Steps one instruction.

        Yields:
            Each iteration, yields a tuple of (address, instruction_size).=

            A StopIteration is raised if a fault or syscall or call instruction
            is encountered.
        """
        self._single_step = (None, None)

        pc = pc or self.pc
        insn = pwndbg.disasm.one(pc)

        # If we don't know how to disassemble, bail.
        if insn is None:
            debug("Can't disassemble instruction at %#x", pc)
            return self._single_step

        debug("# Single-stepping at %#x: %s %s", (pc, insn.mnemonic, insn.op_str))

        try:
            self.single_step_hook_hit_count = 0
            self.emulate_with_hook(self.single_step_hook_code, count=1)
        except U.unicorn.UcError as e:
            self._single_step = (None, None)

        return self._single_step
def single_step ( self , pc = None ) : self . _single_step = ( None , None ) pc = pc or self . pc insn = pwndbg . disasm . one ( pc ) # If we don't know how to disassemble, bail. if insn is None : debug ( "Can't disassemble instruction at %#x" , pc ) return self . _single_step debug ( "# Single-stepping at %#x: %s %s" , ( pc , insn . mnemonic , insn . op_str ) ) try : self . single_step_hook_hit_count = 0 self . emulate_with_hook ( self . single_step_hook_code , count = 1 ) except U . unicorn . UcError as e : self . _single_step = ( None , None ) return self . _single_step