]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/
authorYao Qi <yao@codesourcery.com>
Thu, 14 Mar 2013 09:08:56 +0000 (09:08 +0000)
committerYao Qi <yao@codesourcery.com>
Thu, 14 Mar 2013 09:08:56 +0000 (09:08 +0000)
* tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
status to tfile if trace is stopped by command 'tstop'.

gdb/ChangeLog
gdb/tracepoint.c

index f06b76e72c8355a3dc9875d9d0121d058742d373..4d608f5514403fcc72f04a7f40ef4674a7ea64f0 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-14  Yao Qi  <yao@codesourcery.com>
+
+       * 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  <yao@codesourcery.com>
 
        * tracepoint.c (tfile_write_status): Write trace notes and user
index e8040d097d5c64d1da7d267a170d74187adf90aa..28d34a7250ca85491e456222e024ef90e6da8817 100644 (file)
@@ -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);