From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24010 invoked by alias); 13 Jun 2007 00:07:54 -0000 Received: (qmail 24000 invoked by uid 22791); 13 Jun 2007 00:07:53 -0000 X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 13 Jun 2007 00:07:51 +0000 Received: from ip6-localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 39BEA64F56 for ; Wed, 13 Jun 2007 00:07:49 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: use execvp() rather than execv() in gdbserver Date: Wed, 13 Jun 2007 00:07:00 -0000 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_nVzbGpw3gr1exEy" Message-Id: <200706122008.07546.vapier@gentoo.org> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00212.txt.bz2 --Boundary-00=_nVzbGpw3gr1exEy Content-Type: multipart/signed; boundary="nextPart1299092.UvRzdzlTL8"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1299092.UvRzdzlTL8 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 399 is there a compelling reason that execv() is used rather than execvp() in=20 gdbserver/linux-low.c ? seems it's just always been that way ... personally, i find it annoying having to do: # gdbserver :1234 /bin/ls / on my embedded board instead of: # gdbserver :1234 ls / having used native gdb a lot more, i typo this pretty often since gdb will= =20 search $PATH for the program to run ;( -mike --nextPart1299092.UvRzdzlTL8 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 827 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (GNU/Linux) iQIVAwUARm81Z0FjO5/oN/WBAQIECA/+Ov7u2v5nGb9JJ9/G8F/L77Lg/f6aNK7A 180NhPpro0W1iTQ89cEuQCgntHJY4+TkXc4q/2PQ8XQh5Sc7nCnRNMi2RvuoWHO+ qag0+KXwoz6uF1+UTcHQmoBC5YvW/ak9Eor9qgVuEeXMwR0SI4BL/s44ZaizJ3fo LyUXQ8udqNOqYZ5DaLtUoCBnrcGIQG94qfxc9gBFyiOyxJD5f0UKczWhVL9FvCV+ MPb0XoW/A/nyQl3geqcNDHIiLQjMvtXgFza7Y3TEXUx1Pg6FM2bIXu63MjuGpo+h PUjvXg8aNVeCLRMHU1dvDmk8sjHAuTBo5YRWXbHQPJKfj0DvPCkrJc4wD3cs2wOO Xh70q8qPEY5k5epdmN5TxthsVx7MMOWamO4Scc9fP/E4nCVFdbijmgCdmj6PAUDA JdmgSGywSxS0zk7Mk8ckVdbC/43t4ZJc6lEArLFjXYx62tmOIKYpTVywOZZpYfW8 vcXhEmqWBKmaj3K9zTqvxvhGSVqrqqe64HbwEyBKMUP6FsHR86ENew3txIu5OiRk Y6gvcLE2TBb7LfCJDm1XZ/Uy6f0qw0apa2QLHZ7O29/62FgLFe895aGDUo5isP0f fuuUm3b02WbZI+Gq2b7CykAoqnicORZmbjgISJE1GZKvM42j0R42UFFrA/VG7nMP o1G2P/8UidA= =j2t0 -----END PGP SIGNATURE----- --nextPart1299092.UvRzdzlTL8-- --Boundary-00=_nVzbGpw3gr1exEy Content-Type: text/x-diff; charset="us-ascii"; name="gdbserver-use-execvp.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gdbserver-use-execvp.patch" Content-length: 389 2007-06-12 Mike Frysinger * linux-low.c (linux_create_inferior): Change execv to execvp. --- linux-low.c +++ linux-low.c @@ -165,7 +165,7 @@ linux_create_inferior (char *program, ch setpgid (0, 0); - execv (program, allargs); + execvp (program, allargs); fprintf (stderr, "Cannot exec %s: %s.\n", program, strerror (errno)); --Boundary-00=_nVzbGpw3gr1exEy--