diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-01 00:52:19 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-01 00:52:19 +0000 |
commit | bcbd1de94d2f0f1b254a7f506dfce9c0f158ecb4 (patch) | |
tree | d5793be48dafb0213cb8c68b51720009df3ac2f7 /gdb/fork-child.c | |
parent | 2e4565703653d2936ee3588768df6a7d70b1de1d (diff) | |
download | gdb-bcbd1de94d2f0f1b254a7f506dfce9c0f158ecb4.zip gdb-bcbd1de94d2f0f1b254a7f506dfce9c0f158ecb4.tar.gz gdb-bcbd1de94d2f0f1b254a7f506dfce9c0f158ecb4.tar.bz2 |
2011-02-28 Michael Snyder <msnyder@vmware.com>
* fork-child.c (fork_inferior): Remove ifdef'd code and
unused variable.
Diffstat (limited to 'gdb/fork-child.c')
-rw-r--r-- | gdb/fork-child.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/fork-child.c b/gdb/fork-child.c index f7b027a..bb173e7 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -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); } |