[PATCH] GDB session logging

Abhijit Halder abhijit.k.halder@gmail.com
Wed Sep 14 17:48:00 GMT 2011


This patch is to log along with the output of a command into a
log-file also the command itself when log is enabled. Please review
the patch.

Regards,
Abhijit Halder
-------------- next part --------------
2011-09-13  Abhijit Halder  <abhijit.k.halder@gmail.com>

	Modify logging.

	* main.c (gdb_logfile): Define a new global variable.
	* defs.h (gdb_logfile): Of type GDB_FILE, will pass this around gdb
	to access the log file if presents.
	* top.c (execute_command): Log the command to be executed on file if
	logging is enabled.
	* cli/cli-logging.c (handle_redirections): Assign gdb_logfile the file
	streams associated with log-file.
	(pop_output_files): Reset gdb_logfile to NULL.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-logging.patch
Type: text/x-patch
Size: 2539 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20110914/bd6801fd/attachment.bin>


More information about the Gdb-patches mailing list