GDB - hpaluch/hpaluch.github.io GitHub Wiki
GDB
My GDB (GNU Debugger notes)
My ~/.gdbinit
:
# ~/.gdbinit
set logging file ~/gdb.log
set logging enabled on
set pagination off
set trace-commands on
It enables logging to file ~/gdb.log
, turns off pagination and finally it
also prints commands to log (without it it is hard to understand what log
output belongs to).