From 7a245884a865552171cb54a0a390f18f64fe08eb Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 13 Jun 2007 21:03:38 +0000 Subject: [PATCH] 2007-06-13 Mike Frysinger * linux-low.c (linux_create_inferior): Change execv to execvp. * spu-low.c (spu_create_inferior): Likewies. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/linux-low.c | 2 +- gdb/gdbserver/spu-low.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 17efed1decb..2a06b99f228 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2007-06-13 Mike Frysinger + + * linux-low.c (linux_create_inferior): Change execv to execvp. + * spu-low.c (spu_create_inferior): Likewies. + 2007-06-13 Daniel Jacobowitz * 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 f144f906b43..1ea3ccc0f96 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 b747a536780..22988246fb7 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)); -- 2.30.2