mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* linux-low.c (linux_create_inferior): Try execv before execvp.
* spu-low.c (spu_create_inferior): Likewise.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user