nakst / gf

A GDB frontend for Linux.
MIT License
1.82k stars 61 forks source link

Persistent history after closing #89

Open LamprosPitsillos opened 1 year ago

LamprosPitsillos commented 1 year ago

Is there a way to set history to be persistent ? Something like .gdb_history or set history save on

nakst commented 1 year ago

History of what?

LamprosPitsillos commented 1 year ago

Of the commands executed in the debug window

p x
set var x=4
b myfunc()
__restart_gf__
__press_up__
b myfunc()
...

gdb does this using .gdb_history that you enable with set history save on if i an not mistaken

Docs

nakst commented 1 year ago

No, this is no currently possible. However, it would not be too difficult to add, if you'd like to make a pull request. Basically, you need to the same thing that restoreWatchWindow does, but with the command history array, Array<char *> commandHistory;.

LamprosPitsillos commented 1 year ago

I will give it a try after my exams !