How to pipe gdb's full stack trace to a file? How to pipe gdb's full stack trace to a file? multithreading multithreading

How to pipe gdb's full stack trace to a file?


You should turn off pagination for long outputs like this:

$ gdb <binary> core.dump(gdb) set logging on(gdb) set pagination off(gdb) thread apply all bt full

See gdb FAQ and documentation: