mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 05:12:28 +08:00
gdb/
* tracepoint.c (tfile_write_status): Write 'stop_desc' of trace status to tfile if trace is stopped by command 'tstop'.
This commit is contained in:
@ -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>
|
2013-03-14 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* tracepoint.c (tfile_write_status): Write trace notes and user
|
* tracepoint.c (tfile_write_status): Write trace notes and user
|
||||||
|
@ -3090,7 +3090,8 @@ tfile_write_status (struct trace_file_writer *self,
|
|||||||
|
|
||||||
fprintf (writer->fp, "status %c;%s",
|
fprintf (writer->fp, "status %c;%s",
|
||||||
(ts->running ? '1' : '0'), stop_reason_names[ts->stop_reason]);
|
(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);
|
char *buf = (char *) alloca (strlen (ts->stop_desc) * 2 + 1);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user