From: Yao Qi Date: Thu, 14 Mar 2013 09:08:56 +0000 (+0000) Subject: gdb/ X-Git-Tag: sid-snapshot-20130401~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6682f9ee928ad479b5189bef428dbfca8b34241;p=thirdparty%2Fbinutils-gdb.git gdb/ * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace status to tfile if trace is stopped by command 'tstop'. --- 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);