* dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file

name to perror.
This commit is contained in:
Doug Evans 2010-12-08 18:26:40 +00:00
parent d4637a0471
commit 7e17e08811
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2010-12-08 Doug Evans <dje@google.com>
* dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
name to perror.
* symfile.h (quick_symbol_functions): Clarify usage of
expand_symtabs_with_filename.
* dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over

View file

@ -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);