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.