Index: gdb/corefile.c =================================================================== RCS file: /cvs/src/src/gdb/corefile.c,v retrieving revision 1.71 diff -u -p -r1.71 corefile.c --- gdb/corefile.c 14 Jan 2013 21:03:54 -0000 1.71 +++ gdb/corefile.c 1 Feb 2013 15:42:17 -0000 @@ -149,7 +149,11 @@ reopen_exec_file (void) cleanups = make_cleanup (xfree, filename); res = stat (filename, &st); - if (exec_bfd_mtime && exec_bfd_mtime != st.st_mtime) + if (res != 0 && info_verbose) + warning (_("File %s could not be stat-ed (%s)\n"), filename, + strerror (res)); + + if (res == 0 && exec_bfd_mtime && exec_bfd_mtime != st.st_mtime) exec_file_attach (filename, 0); else /* If we accessed the file since last opening it, close it now;