This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
GDB session logging
- From: Abhijit Halder <abhijit dot k dot halder at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 13 Sep 2011 19:45:50 +0530
- Subject: GDB session logging
Hi,
I can see that by using the following GDB commands I can enable logging:
(gdb) set logging file gdb-session.log
(gdb) set logging on
My concern here is that the file gdb-session.log contains only the
command output and not the command itself. After I complete my
debugging if I want to create a debug report out of my session log I
cannot do that as most of the output does not make sense to me. I
cannot remember which output of which command and in which context. I
believe we should log the command as well along with the command
output. There should be provision for logging only the command (along
with any error thrown by the command) and not the output of that
command.
Thanks,
Abhijit Halder