diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-06-20 18:54:21 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-06-20 18:54:21 +0000 |
commit | 2b876972d066b862720551f83ca8b08be847b6ce (patch) | |
tree | 6ca4366885f19c1ec4ecaed6c8afbae46fc6e84d /gdb/gdbserver/spu-low.c | |
parent | 52b572086640c9f87e7947fcb3bbd0c6b0bb9d70 (diff) | |
download | gdb-2b876972d066b862720551f83ca8b08be847b6ce.zip gdb-2b876972d066b862720551f83ca8b08be847b6ce.tar.gz gdb-2b876972d066b862720551f83ca8b08be847b6ce.tar.bz2 |
* linux-low.c (linux_create_inferior): Try execv before execvp.
* spu-low.c (spu_create_inferior): Likewise.
Diffstat (limited to 'gdb/gdbserver/spu-low.c')
-rw-r--r-- | gdb/gdbserver/spu-low.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdbserver/spu-low.c b/gdb/gdbserver/spu-low.c index 2298824..77f671e 100644 --- a/gdb/gdbserver/spu-low.c +++ b/gdb/gdbserver/spu-low.c @@ -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)); |