I noticed that my command history remains only during the current session, and once I re-start ddd, say with the same process, it starts with a clean slate. Is there way I can force the latest history to persist/reload.
I couldn’t find any relevant options in Edit-> Preference/GDB sessions.
I am using GNU DDD 3.3.9 (i386-redhat-linux-gnu)
I am not using DDD. Am using GDB command line on an ubuntu box. This answer may be useful to those who want to save their gdb history within sessions:
As per the documentation available: here, history saving is disabled by default. To enable it and to do so everytime I run gdb, I did the following:
set history save on
set history expansion on
When I quit and restarted gdb, I was able to access previous sessions commands. I use the vi mode in gdb (Esc + Enter) and doing a “Ctrl + r” shows me previous listings. Hope this helps.