aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-03-26 14:31:48 +0000
committerPedro Alves <palves@redhat.com>2010-03-26 14:31:48 +0000
commit610197fd468b01ed5bc653b19e7c720f2a8d1f8d (patch)
tree8e1a6864e663bacb879a483bf1fa8ed43aabe26c /gdb/tracepoint.c
parent99b5e152aad13580d6a3b7feda87ad40de7ec7d2 (diff)
downloadgdb-610197fd468b01ed5bc653b19e7c720f2a8d1f8d.zip
gdb-610197fd468b01ed5bc653b19e7c720f2a8d1f8d.tar.gz
gdb-610197fd468b01ed5bc653b19e7c720f2a8d1f8d.tar.bz2
gdb/
* tracepoint.c (trace_save): Remove X from tracepoint error description. gdb/testsuite/ * gdb.trace/tfile.c (tohex, bin2hex): New. (write_error_trace_file): Hexify error description.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index fc364f3..95e3478 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -2484,12 +2484,11 @@ trace_save (const char *filename, int target_does_save)
/* Write out status of the tracing run (aka "tstatus" info). */
fprintf (fp, "status %c;%s",
(ts->running ? '1' : '0'), stop_reason_names[ts->stop_reason]);
- /* Encode the error message in hex, might have weird chars. */
if (ts->stop_reason == tracepoint_error)
{
char *buf = (char *) alloca (strlen (ts->error_desc) * 2 + 1);
bin2hex ((gdb_byte *) ts->error_desc, buf, 0);
- fprintf (fp, ":X%s", buf);
+ fprintf (fp, ":%s", buf);
}
fprintf (fp, ":%x", ts->stopping_tracepoint);
if (ts->traceframe_count >= 0)