From: Dmitry Kozlov Date: Wed, 26 Jun 2013 15:17:59 +0000 (+0000) Subject: Extend tsave to save starttime, stoptime. X-Git-Tag: sid-snapshot-20130701~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cdba14e0bf03ec44867081354aecf0a7a1ef2050;p=external%2Fbinutils.git Extend tsave to save starttime, stoptime. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f7b3d55..0919016 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2013-06-26 Dmitry Kozlov + * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime. + +2013-06-26 Dmitry Kozlov + Fix trace-status to output proper start-time and stop-time. * tracepoint.c (trace_status_command): Fix type of printf arg to prevent improper type conversion. diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 67735bc..bbba2f8 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -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);