()
return False
Breaks on next instruction that belongs to process' objfile code.
    :return: True for success, False when process ended or when pc is at the code.
Breaks on next instruction that belongs to process' objfile code.
    :return: True for success, False when process ended or when pc is at the code.
Breaks on next instruction that belongs to process objfile code . : return : True for success False when process ended or when pc is at the code .
def break_on_program_code():
    """
    Breaks on next instruction that belongs to process' objfile code.
    :return: True for success, False when process ended or when pc is at the code.
    """
    mp = pwndbg.proc.mem_page
    start = mp.start
    end = mp.end

    if start <= pwndbg.regs.pc < end:
        print(message.error('The pc is already at the binary objfile code. Not stepping.'))
        return False

    while pwndbg.proc.alive:
        gdb.execute('si', from_tty=False, to_string=False)

        addr = pwndbg.regs.pc
        if start <= addr < end:
            return True

    return False
def break_on_program_code ( ) : mp = pwndbg . proc . mem_page start = mp . start end = mp . end if start <= pwndbg . regs . pc < end : print ( message . error ( 'The pc is already at the binary objfile code. Not stepping.' ) ) return False while pwndbg . proc . alive : gdb . execute ( 'si' , from_tty = False , to_string = False ) addr = pwndbg . regs . pc if start <= addr < end : return True return False