diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-01-04 15:13:26 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-01-04 15:13:26 +0000 |
commit | 78218f5600d1c8dbe66f5281d24157b266124243 (patch) | |
tree | c4d24f387b7be8ff0f6f1176743a210e18c68f29 /gdb/corefile.c | |
parent | 0fcd72ba3772517ba91b2e84f39db6be8e194630 (diff) | |
download | binutils-gdb-78218f5600d1c8dbe66f5281d24157b266124243.tar.gz |
Get rid of corefile.c:close_exec_file
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.
Diffstat (limited to 'gdb/corefile.c')
-rw-r--r-- | gdb/corefile.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gdb/corefile.c b/gdb/corefile.c index c07447b2091..1741e9c40ba 100644 --- a/gdb/corefile.c +++ b/gdb/corefile.c @@ -132,26 +132,9 @@ specify_exec_file_hook (void (*hook) (char *)) 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; @@ -175,7 +158,6 @@ reopen_exec_file (void) bfd_cache_close_all (); do_cleanups (cleanups); -#endif } /* If we have both a core file and an exec file, |