enable persistent history in gdb

from blog wingolog, | ↗ original
Friends. I have been using GDB for more than two decades and have been annoyed by the fact that, unlike the shell, it doesn’t keep a persistent history.Of course, it has always been able to do that, but history saving is just not on by default. So do yourself a favor and turn it on by pasting this into your terminal:mkdir -p ~/.config/gdb mkdir -p ~/.cache/gdb echo 'set history filename ~/.cache/gdb/history' >> ~/.config/gdb/gdbinit echo 'set...