[commit] pass file name to perror_with_name

Doug Evans dje@google.com
Wed Dec 8 18:28:00 GMT 2010


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



More information about the Gdb-patches mailing list