The body of this function has been commented out since Jul 1999, and
thus seems unnecessary. While at it, remove some commented out code
that seems to be related to the function being deleted.
gdb/ChangeLog:
* corefile.c (close_exec_file): Delete.
(reopen_exec_file): Remove commented out code that seems related
to close_exec_file, which is being deleted here.
* inferior.h (close_exec_file): Delete.
* fork-child.c (fork_inferior): Remove call to fork_inferior.
+2012-01-04 Joel Brobecker <brobecker@adacore.com>
+
+ * corefile.c (close_exec_file): Delete.
+ (reopen_exec_file): Remove commented out code that seems related
+ to close_exec_file, which is being deleted here.
+ * inferior.h (close_exec_file): Delete.
+ * fork-child.c (fork_inferior): Remove call to fork_inferior.
+
2012-01-04 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c: #include "cli/cli-utils.h".
deprecated_exec_file_display_hook = hook;
}
-/* The exec file must be closed before running an inferior.
- If it is needed again after the inferior dies, it must
- be reopened. */
-
-void
-close_exec_file (void)
-{
-#if 0 /* FIXME */
- if (exec_bfd)
- bfd_tempclose (exec_bfd);
-#endif
-}
-
void
reopen_exec_file (void)
{
-#if 0 /* FIXME */
- if (exec_bfd)
- bfd_reopen (exec_bfd);
-#else
char *filename;
int res;
struct stat st;
bfd_cache_close_all ();
do_cleanups (cleanups);
-#endif
}
\f
/* If we have both a core file and an exec file,
argv[3] = (char *) 0;
}
- /* On some systems an exec will fail if the executable is open. */
- close_exec_file ();
-
/* Retain a copy of our environment variables, since the child will
replace the value of environ and if we're vforked, we have to
restore it. */
extern void init_wait_for_inferior (void);
-extern void close_exec_file (void);
-
extern void reopen_exec_file (void);
/* The `resume' routine should only be called in special circumstances.