ugdb icon indicating copy to clipboard operation
ugdb copied to clipboard

Isn't history save and load implemented yet?

Open fx-kirin opened this issue 3 years ago • 1 comments

I'm trying to use gdb history through ugdb, but can't save history file and load it at its beginning.

This is the show history command result.

(gdb) show history
expansion:  History expansion on command input is off.
filename:  The filename in which to record the command history is "/home/myname/.gdb_history".
remove-duplicates:  The number of history entries to look back at for duplicates is 0.
save:  Saving of the history record on exit is on.
size:  The size of the command history is 10000.

I can use gdb history with gdb itself.

Environment

Linux Mint 20 x64

$ ugdb -V
ugdb 0.1.11
$ rustup -V
rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.59.0-nightly (51e8031e1 2021-12-25)`

my .gdbinit

 set history save on
 set history size 10000
 set history filename ~/.gdb_history
 set listsize 25

fx-kirin avatar Mar 28 '22 05:03 fx-kirin

No, unfortunately history saving/loading is not yet implemented and we don't use the gdb history. (I don't think there is a way to do that through the gdbmi API that we use?)

I guess it would probably not be hard too implement that, but I'm afraid I won't get around to that in the immediate future. (But contributions are welcome of course.)

ftilde avatar Mar 29 '22 21:03 ftilde