I know that I can
- ask
gdbto save my command history to a file, saygdb.history, byset history filename gdb.historyandset history save on, and - ask it to log its output to another file, say
gdb.output, byset logging file gdb.outputandset logging on.
But how to require gdb to save both my command line inputs and its responding outputs to the same file, in the order of they occur in that GDB session?
I tried using the same file name in both history and logging command, it does not work, contents of that file will be overwrite by GDB command history when I quit from gdb.