* spu-low.c (spu_create_inferior): Likewise.
+2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-low.c (linux_create_inferior): Try execv before execvp.
+ * spu-low.c (spu_create_inferior): Likewise.
+
2007-06-13 Mike Frysinger <vapier@gentoo.org>
* linux-low.c (linux_create_inferior): Change execv to execvp.
setpgid (0, 0);
- execvp (program, allargs);
+ execv (program, allargs);
+ if (errno == ENOENT)
+ execvp (program, allargs);
fprintf (stderr, "Cannot exec %s: %s.\n", program,
strerror (errno));
setpgid (0, 0);
- execvp (program, allargs);
+ execv (program, allargs);
+ if (errno == ENOENT)
+ execvp (program, allargs);
fprintf (stderr, "Cannot exec %s: %s.\n", program,
strerror (errno));