aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-03-14 09:08:56 +0000
committerYao Qi <yao@codesourcery.com>2013-03-14 09:08:56 +0000
commitd6682f9ee928ad479b5189bef428dbfca8b34241 (patch)
treeb163100ca4ed3d05e453a08995e2548bb0f52728 /gdb/tracepoint.c
parenta22fa6e48d4ba508fc441f77f6a35620c42226c3 (diff)
downloadgdb-d6682f9ee928ad479b5189bef428dbfca8b34241.zip
gdb-d6682f9ee928ad479b5189bef428dbfca8b34241.tar.gz
gdb-d6682f9ee928ad479b5189bef428dbfca8b34241.tar.bz2
gdb/
* tracepoint.c (tfile_write_status): Write 'stop_desc' of trace status to tfile if trace is stopped by command 'tstop'.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index e8040d0..28d34a7 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);