From d6682f9ee928ad479b5189bef428dbfca8b34241 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Thu, 14 Mar 2013 09:08:56 +0000 Subject: [PATCH] gdb/ * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace status to tfile if trace is stopped by command 'tstop'. --- gdb/ChangeLog | 5 +++++ gdb/tracepoint.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f06b76e72c8..4d608f55144 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-03-14 Yao Qi + + * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace + status to tfile if trace is stopped by command 'tstop'. + 2013-03-14 Yao Qi * tracepoint.c (tfile_write_status): Write trace notes and user diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index e8040d097d5..28d34a7250c 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -3090,7 +3090,8 @@ tfile_write_status (struct trace_file_writer *self, fprintf (writer->fp, "status %c;%s", (ts->running ? '1' : '0'), stop_reason_names[ts->stop_reason]); - if (ts->stop_reason == tracepoint_error) + if (ts->stop_reason == tracepoint_error + || ts->stop_reason == tstop_command) { char *buf = (char *) alloca (strlen (ts->stop_desc) * 2 + 1); -- 2.30.2