aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-09-22 10:22:28 +0000
committerTristan Gingold <gingold@adacore.com>2011-09-22 10:22:28 +0000
commite69860f1b6d6e38cc5de31a9dc1138015182c7d5 (patch)
tree0440500af65431119a8f792b2967d84b63e5064f /gdb/gnu-nat.c
parent7cf3bbff3627f9650721a2f8c07581e75208d30d (diff)
downloadgdb-e69860f1b6d6e38cc5de31a9dc1138015182c7d5.zip
gdb-e69860f1b6d6e38cc5de31a9dc1138015182c7d5.tar.gz
gdb-e69860f1b6d6e38cc5de31a9dc1138015182c7d5.tar.bz2
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.
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r--gdb/gnu-nat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index 7269694..32f78be 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -2114,7 +2114,8 @@ gnu_create_inferior (struct target_ops *ops,
inf_debug (inf, "creating inferior");
- pid = fork_inferior (exec_file, allargs, env, trace_me, NULL, NULL, NULL);
+ pid = fork_inferior (exec_file, allargs, env, trace_me,
+ NULL, NULL, NULL, NULL);
/* Attach to the now stopped child, which is actually a shell... */
inf_debug (inf, "attaching to child: %d", pid);