mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
* linux-low.c (linux_create_inferior): Try execv before execvp.
* spu-low.c (spu_create_inferior): Likewise.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
@ -165,7 +165,9 @@ linux_create_inferior (char *program, char **allargs)
|
||||
|
||||
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));
|
||||
|
@ -278,7 +278,9 @@ spu_create_inferior (char *program, char **allargs)
|
||||
|
||||
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));
|
||||
|
Reference in New Issue
Block a user