set pagination off
set print frame-arguments all
set logging file log.dat
set logging on

set $_exitcode = -1
run

if $_exitcode != -1
    quit
else
    #backtrace
    # backtrace for all threads
    thread apply all bt full
    quit
end
