This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] remotelogfile and MI
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 4 Feb 2010 10:39:49 +0300
- Subject: [commit] remotelogfile and MI
I was told by a colleague that if you do
set remotelogfile /tmp/foo
then MI commands are not included in the log. The below patch, checked in,
fixes that.
- Volodya
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.11322
diff -u -p -r1.11322 ChangeLog
--- ChangeLog 3 Feb 2010 18:30:03 -0000 1.11322
+++ ChangeLog 4 Feb 2010 07:33:26 -0000
@@ -1,3 +1,9 @@
+2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
+
+ Include MI command in remotelog.
+
+ * mi/mi-main.c (mi_execute_command): Call target_log_command.
+
2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
* remote.c (remote_state): Remove gdbarch.
Index: mi/mi-main.c
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-main.c,v
retrieving revision 1.163
diff -u -p -r1.163 mi-main.c
--- mi/mi-main.c 12 Jan 2010 23:05:52 -0000 1.163
+++ mi/mi-main.c 4 Feb 2010 07:33:26 -0000
@@ -1541,6 +1541,8 @@ mi_execute_command (char *cmd, int from_
if (cmd == 0)
quit_force (NULL, from_tty);
+ target_log_command (cmd);
+
command = mi_parse (cmd);
if (command != NULL)