2011-09-22 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Thu, 22 Sep 2011 10:22:28 +0000 (10:22 +0000)
committerTristan Gingold <gingold@adacore.com>
Thu, 22 Sep 2011 10:22:28 +0000 (10:22 +0000)
commite69860f1b6d6e38cc5de31a9dc1138015182c7d5
tree0440500af65431119a8f792b2967d84b63e5064f
parent7cf3bbff3627f9650721a2f8c07581e75208d30d
2011-09-22  Tristan Gingold  <gingold@adacore.com>

* fork-child.c (fork_inferior): Add exec_fun parameter.
Call exec_fun or execvp.
* inferior.h: Adjust prototype.
* gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
* inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
* inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
* procfs.c (procfs_create_inferior): Ditto.
* darwin-nat.c (darwin_execvp): New function.
(darwin_create_inferior): Use it.
gdb/ChangeLog
gdb/darwin-nat.c
gdb/fork-child.c
gdb/gnu-nat.c
gdb/inf-ptrace.c
gdb/inf-ttrace.c
gdb/inferior.h
gdb/procfs.c