Extend tsave to save starttime, stoptime.
authorDmitry Kozlov <ddk@sourceware.org>
Wed, 26 Jun 2013 15:17:59 +0000 (15:17 +0000)
committerDmitry Kozlov <ddk@sourceware.org>
Wed, 26 Jun 2013 15:17:59 +0000 (15:17 +0000)
gdb/ChangeLog
gdb/tracepoint.c

index f7b3d554871c4ff70ef1ae080534d6d6ca293fe6..0919016081dab56d5832fc34abc4bdb4c8c0432a 100644 (file)
@@ -1,3 +1,7 @@
+2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
+
+       * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
+
 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
 
        Fix trace-status to output proper start-time and stop-time.
index 67735bce0d20f1c78dd595d2bc2806fbf176e3bc..bbba2f8d0cb3bf9d14d4c6e42381f890fa2151cc 100644 (file)
@@ -3229,6 +3229,16 @@ tfile_write_status (struct trace_file_writer *self,
     fprintf (writer->fp, ";disconn:%x", ts->disconnected_tracing);
   if (ts->circular_buffer)
     fprintf (writer->fp, ";circular:%x", ts->circular_buffer);
+  if (ts->start_time)
+    {
+      fprintf (writer->fp, ";starttime:%s",
+      phex_nz (ts->start_time, sizeof (ts->start_time)));
+    }
+  if (ts->stop_time)
+    {
+      fprintf (writer->fp, ";stoptime:%s",
+      phex_nz (ts->stop_time, sizeof (ts->stop_time)));
+    }
   if (ts->notes != NULL)
     {
       char *buf = (char *) alloca (strlen (ts->notes) * 2 + 1);