when you turn on logging in windbg (.logopen), the logging output will include what you have typed on the prompt kd> . but when you turn on logging in gdb (set logging on), only the output of the command will be logged, how to make gdb also echo/log the command in the logging file?
In case you want to log command details in log file, you can set command trace on in gdb along with logging:
set trace-commands on
set logging on
This would produce desired logs !
this is just to summarize the result, credit should go to dbrank0.
per this thread, patch to implement similar feature is rejected. and alternative options is to log terminal session, see script, and other options.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With