aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2013-08-09 15:35:03 +0000
committerPedro Alves <palves@redhat.com>2013-08-09 15:35:03 +0000
commit3f12a589a083c783113c099aef51ff304af34f0f (patch)
tree398b3771376aab2b36ad08896760cb8160c2f54f /gdb/tracepoint.c
parentc718be4726f8cfaf28c3eb086d5880f0320c1c25 (diff)
downloadgdb-3f12a589a083c783113c099aef51ff304af34f0f.zip
gdb-3f12a589a083c783113c099aef51ff304af34f0f.tar.gz
gdb-3f12a589a083c783113c099aef51ff304af34f0f.tar.bz2
tsave: Make tilde-expanded filename visible.
Before: (gdb) tsave ~/a/b Unable to open file '~/a/b' for saving trace data (No such file or directory) After: (gdb) tsave ~/a/b Unable to open file '/home/pedro/a/b' for saving trace data (No such file or directory) Tested on x86_64 Fedora 17. gdb/ 2013-08-09 Pedro Alves <palves@redhat.com> * tracepoint.c (tfile_start): Show tilde-expanded filename in error message.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index ce61fb7..7dbe54b 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -3163,7 +3163,7 @@ tfile_start (struct trace_file_writer *self, const char *filename)
writer->fp = gdb_fopen_cloexec (writer->pathname, "wb");
if (writer->fp == NULL)
error (_("Unable to open file '%s' for saving trace data (%s)"),
- filename, safe_strerror (errno));
+ writer->pathname, safe_strerror (errno));
}
/* This is the implementation of trace_file_write_ops method