mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +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,6 +165,8 @@ linux_create_inferior (char *program, char **allargs)
|
||||
|
||||
setpgid (0, 0);
|
||||
|
||||
execv (program, allargs);
|
||||
if (errno == ENOENT)
|
||||
execvp (program, allargs);
|
||||
|
||||
fprintf (stderr, "Cannot exec %s: %s.\n", program,
|
||||
|
@ -278,6 +278,8 @@ spu_create_inferior (char *program, char **allargs)
|
||||
|
||||
setpgid (0, 0);
|
||||
|
||||
execv (program, allargs);
|
||||
if (errno == ENOENT)
|
||||
execvp (program, allargs);
|
||||
|
||||
fprintf (stderr, "Cannot exec %s: %s.\n", program,
|
||||
|
Reference in New Issue
Block a user