Sometimes I'd like to be able to write out some of my command-line history as a gdb script. Maybe a "save history" command with parameters to control which elements are saved.
Working on a patch.
Maybe a dup of PR15328?
I sent a patch for "save history" but not any of the other stuff. So I tend to think this could remain separate.
The master branch has been updated by Tom Tromey <tromey@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=52279d0980ee052bb425bd4e96fd36a25c4c3e88 commit 52279d0980ee052bb425bd4e96fd36a25c4c3e88 Author: Tom Tromey <tom@tromey.com> Date: Mon Jan 23 17:40:16 2023 -0700 Add "save history" command PR cli/23664 points out that it would sometimes be convenient to immediately save the current history to a file. This patch implements this feature. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=23664 Reviewed-By: Eli Zaretskii <eliz@gnu.org> Reviewed-By: Keith Seitz <keiths@redhat.com>
Fixed.