2011-02-28 Michael Snyder <msnyder@vmware.com>

* fork-child.c (fork_inferior): Remove ifdef'd code and
	unused variable.
This commit is contained in:
Michael Snyder 2011-03-01 00:52:19 +00:00
parent 2e45657036
commit bcbd1de94d
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,8 @@
2011-02-28 Michael Snyder <msnyder@vmware.com>
* fork-child.c (fork_inferior): Remove ifdef'd code and
unused variable.
* linux-thread-db.c (attach_thread): Discard unused value.
* linux-nat.c (linux_handle_extended_wait): Delete unused variable.

View File

@ -367,12 +367,11 @@ fork_inferior (char *exec_file_arg, char *allargs, char **env,
/* Otherwise, we directly exec the target program with
execvp. */
int i;
char *errstring;
execvp (exec_file, argv);
/* If we get here, it's an error. */
errstring = safe_strerror (errno);
safe_strerror (errno);
fprintf_unfiltered (gdb_stderr, "Cannot exec %s ", exec_file);
i = 1;
@ -384,10 +383,6 @@ fork_inferior (char *exec_file_arg, char *allargs, char **env,
i++;
}
fprintf_unfiltered (gdb_stderr, ".\n");
#if 0
/* This extra info seems to be useless. */
fprintf_unfiltered (gdb_stderr, "Got error %s.\n", errstring);
#endif
gdb_flush (gdb_stderr);
_exit (0177);
}