script/remote-gdb: enable and keep command history