Write output to log file: set logging file /tmp/gdb.txt set logging on Turn off pagination: set pagination off Include all threads when printing backtrace info: thread apply all bt