diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-06-13 21:03:38 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-06-13 21:03:38 +0000 |
commit | 7a245884a865552171cb54a0a390f18f64fe08eb (patch) | |
tree | d4e608ed035bf6d22d3ba2930f403dbad7d665a0 | |
parent | 1780a0edf4903787581db60d46e216acc7c70b37 (diff) | |
download | gdb-7a245884a865552171cb54a0a390f18f64fe08eb.zip gdb-7a245884a865552171cb54a0a390f18f64fe08eb.tar.gz gdb-7a245884a865552171cb54a0a390f18f64fe08eb.tar.bz2 |
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.
-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)); |