This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] pass file name to perror_with_name
- From: dje at google dot com (Doug Evans)
- To: gdb-patches at sourceware dot org
- Date: Wed, 8 Dec 2010 10:28:07 -0800 (PST)
- Subject: [commit] pass file name to perror_with_name
Hi.
fyi, I committed this.
2010-12-08 Doug Evans <dje@google.com>
* dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
name to perror.
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.484
diff -u -p -r1.484 dwarf2read.c
--- dwarf2read.c 8 Dec 2010 17:31:52 -0000 1.484
+++ dwarf2read.c 8 Dec 2010 17:44:00 -0000
@@ -15296,7 +15481,7 @@ write_psymtabs_to_index (struct objfile
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);