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.
/* 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;
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);
}