diff options
author | Dmitry Kozlov <ddk@sourceware.org> | 2013-06-26 15:17:59 +0000 |
---|---|---|
committer | Dmitry Kozlov <ddk@sourceware.org> | 2013-06-26 15:17:59 +0000 |
commit | cdba14e0bf03ec44867081354aecf0a7a1ef2050 (patch) | |
tree | 921ae515886f3cdab4ebf447635dd284884b36e0 /gdb/tracepoint.c | |
parent | f30aa5affef01c27955e33d8e05960c58e9b8a66 (diff) | |
download | gdb-cdba14e0bf03ec44867081354aecf0a7a1ef2050.zip gdb-cdba14e0bf03ec44867081354aecf0a7a1ef2050.tar.gz gdb-cdba14e0bf03ec44867081354aecf0a7a1ef2050.tar.bz2 |
Extend tsave to save starttime, stoptime.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 10 |
1 files changed, 10 insertions, 0 deletions
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); |