aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-12-08 18:26:40 +0000
committerDoug Evans <dje@google.com>2010-12-08 18:26:40 +0000
commit7e17e08811095ba976071556ade9778dcfecc69f (patch)
treec35b431588b40fa6c9e36959f93d494ceefc3df8 /gdb/dwarf2read.c
parentd4637a04714af3e034b0b3b680980832e9764300 (diff)
downloadgdb-7e17e08811095ba976071556ade9778dcfecc69f.zip
gdb-7e17e08811095ba976071556ade9778dcfecc69f.tar.gz
gdb-7e17e08811095ba976071556ade9778dcfecc69f.tar.bz2
* dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
name to perror.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 8801fb1..72e31e7 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -15301,7 +15301,7 @@ write_psymtabs_to_index (struct objfile *objfile, const char *dir)
error (_("Cannot use an index to create the index"));
if (stat (objfile->name, &st) < 0)
- perror_with_name (_("Could not stat"));
+ perror_with_name (objfile->name);
filename = concat (dir, SLASH_STRING, lbasename (objfile->name),
INDEX_SUFFIX, (char *) NULL);