set logging file gdb-crash1.log
set logging on
set pagination off
echo backtrace:\n
backtrace full
echo \n\nregisters:\n
info registers
echo \n\ncurrent instructions:\n
x/32i $pc
echo \n\nthreads backtrace:\n
thread apply all backtrace
set logging off
quit

