Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / corefile.c
index 6cc2afc49e816e2dbefe45266e2977df1a5e4176..64de931b167dbf59110a8a0970d1731e4325ee9a 100644 (file)
@@ -144,7 +144,7 @@ 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 && 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;
This page took 0.028037 seconds and 4 git commands to generate.