(self, instruction)
Adds a ``next`` field to the instruction.

        By default, it is set to the address of the next linear
        instruction.

        If the instruction is a non-"call" branch and either:

        - Is unconditional
        - Is conditional, but is known to be taken

        And the target can be resolved, it is set to the address
        of the jump target.
Adds a ``next`` field to the instruction.
Adds a next field to the instruction .
def enhance_next(self, instruction):
        """
        Adds a ``next`` field to the instruction.

        By default, it is set to the address of the next linear
        instruction.

        If the instruction is a non-"call" branch and either:

        - Is unconditional
        - Is conditional, but is known to be taken

        And the target can be resolved, it is set to the address
        of the jump target.
        """
        next_addr = None

        if instruction.condition in (True, None):
            next_addr = self.next(instruction)

        instruction.target = None
        instruction.target_const = None
        instruction.next = None

        if next_addr is None:
            next_addr = instruction.address + instruction.size
            instruction.target = self.next(instruction, call=True)


        instruction.next = next_addr & pwndbg.arch.ptrmask

        if instruction.target is None:
            instruction.target = instruction.next

        if instruction.operands and instruction.operands[0].int:
            instruction.target_const = True
def enhance_next ( self , instruction ) : next_addr = None if instruction . condition in ( True , None ) : next_addr = self . next ( instruction ) instruction . target = None instruction . target_const = None instruction . next = None if next_addr is None : next_addr = instruction . address + instruction . size instruction . target = self . next ( instruction , call = True ) instruction . next = next_addr & pwndbg . arch . ptrmask if instruction . target is None : instruction . target = instruction . next if instruction . operands and instruction . operands [ 0 ] . int : instruction . target_const = True