use execvp() rather than execv() in gdbserver

Mike Frysinger vapier@gentoo.org
Wed Jun 13 00:07:00 GMT 2007


is there a compelling reason that execv() is used rather than execvp() in 
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 
search $PATH for the program to run ;(
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070613/39d65685/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdbserver-use-execvp.patch
Type: text/x-diff
Size: 389 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070613/39d65685/attachment.bin>


More information about the Gdb-patches mailing list