OSDN Git Service

2007-06-13 Mike Frysinger <vapier@gentoo.org>
authordrow <drow>
Wed, 13 Jun 2007 21:03:38 +0000 (21:03 +0000)
committerdrow <drow>
Wed, 13 Jun 2007 21:03:38 +0000 (21:03 +0000)
* linux-low.c (linux_create_inferior): Change execv to execvp.
* spu-low.c (spu_create_inferior): Likewies.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c
gdb/gdbserver/spu-low.c

index 17efed1..2a06b99 100644 (file)
@@ -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.
index f144f90..1ea3ccc 100644 (file)
@@ -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));
index b747a53..2298824 100644 (file)
@@ -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));