Attached is a patch to gdbserver to allow the remote server to attach to a process by executable name rather than by pid number.  It chooses the 'first' process name that matches, assuming it to be the group leader of a multi-threaded application.  I found this to be extremely helpful in repeated use of gdbserver.
 
2002-12-09  Glenn Engel glenne@engel.org
 
        * server.c (main): Allow process name in addition to PID number

--
Glenn

glenn_engel@agilent.com / Agilent Laboratories / NN7N / 425-335-2066