(n=1)
Select and print stack frame that called this one.
    An argument says how many frames up to go.
Select and print stack frame that called this one.
    An argument says how many frames up to go.
Select and print stack frame that called this one . An argument says how many frames up to go .
def up(n=1):
    """
    Select and print stack frame that called this one.
    An argument says how many frames up to go.
    """
    f = gdb.selected_frame()

    for i in range(int(n)):
        if f.older():
            f = f.older()
    f.select()

    # workaround for #632
    gdb.execute('frame', to_string=True)

    bt = pwndbg.commands.context.context_backtrace(with_banner=False)
    print('\n'.join(bt))

    j()
def up ( n = 1 ) : f = gdb . selected_frame ( ) for i in range ( int ( n ) ) : if f . older ( ) : f = f . older ( ) f . select ( ) # workaround for #632 gdb . execute ( 'frame' , to_string = True ) bt = pwndbg . commands . context . context_backtrace ( with_banner = False ) print ( '\n' . join ( bt ) ) j ( )