2011-09-16 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Fri, 16 Sep 2011 15:41:09 +0000 (15:41 +0000)
committerTristan Gingold <gingold@adacore.com>
Fri, 16 Sep 2011 15:41:09 +0000 (15:41 +0000)
commitf877b031e8a6adc5db2530cc63f69be1c5633381
tree5afa2a00903452bcdf826fe6e3ed3d717d5e4d83
parentae0c443d84a751f25e711b461c68addee8131774
2011-09-16  Tristan Gingold  <gingold@adacore.com>

* fork-child.c (fork_inferior): Update comment.  Use alloca
instead of xmalloc for argv.  Move len and shell_command
declarations in the block where they are used.
Only call execvp.  Factorize failure code.
gdb/ChangeLog
gdb/fork-child.c