diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 2 | ||||
-rw-r--r-- | gdb/gdbserver/spu-low.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 17efed1..2a06b99 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2007-06-13 Mike Frysinger <vapier@gentoo.org> + + * linux-low.c (linux_create_inferior): Change execv to execvp. + * spu-low.c (spu_create_inferior): Likewies. + 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> * Makefile.in (clean): Clean new files instead of deleted ones. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index f144f90..1ea3ccc 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -165,7 +165,7 @@ linux_create_inferior (char *program, char **allargs) setpgid (0, 0); - execv (program, allargs); + execvp (program, allargs); fprintf (stderr, "Cannot exec %s: %s.\n", program, strerror (errno)); diff --git a/gdb/gdbserver/spu-low.c b/gdb/gdbserver/spu-low.c index b747a53..2298824 100644 --- a/gdb/gdbserver/spu-low.c +++ b/gdb/gdbserver/spu-low.c @@ -278,7 +278,7 @@ spu_create_inferior (char *program, char **allargs) setpgid (0, 0); - execv (program, allargs); + execvp (program, allargs); fprintf (stderr, "Cannot exec %s: %s.\n", program, strerror (errno)); |