gdb: save history