diff options
author | Doug Evans <dje@google.com> | 2010-12-08 18:26:40 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2010-12-08 18:26:40 +0000 |
commit | 7e17e08811095ba976071556ade9778dcfecc69f (patch) | |
tree | c35b431588b40fa6c9e36959f93d494ceefc3df8 /gdb | |
parent | d4637a04714af3e034b0b3b680980832e9764300 (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5b89470..166c116 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 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); |