From: Doug Evans Date: Wed, 8 Dec 2010 18:26:40 +0000 (+0000) Subject: * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e17e08811095ba976071556ade9778dcfecc69f;p=binutils-gdb.git * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file name to perror. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5b894700be6..166c1162bcf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2010-12-08 Doug Evans + * 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 diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 8801fb18f86..72e31e70916 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);