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/fork-child.c | |
parent | Use skip_spaces and skip_to_space in ada-lang.c (diff) | |
download | binutils-gdb-78218f5600d1c8dbe66f5281d24157b266124243.tar.gz binutils-gdb-78218f5600d1c8dbe66f5281d24157b266124243.tar.bz2 binutils-gdb-78218f5600d1c8dbe66f5281d24157b266124243.zip |
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/fork-child.c')
-rw-r--r-- | gdb/fork-child.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/fork-child.c b/gdb/fork-child.c index cba91f9b46d..3b8da49ef87 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -272,9 +272,6 @@ fork_inferior (char *exec_file_arg, char *allargs, char **env, 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. */ |