This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]