Save gdb history.