Skip to content

Isn't history save and load implemented yet? #26

@fx-kirin

Description

@fx-kirin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions