This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: patch to gdbserver for names instead of pid numbers


On Mon, Dec 09, 2002 at 02:14:26PM -0800, glenn_engel@agilent.com wrote:
> 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 <mailto:glenne@engel.org> 
>  
>         * server.c (main): Allow process name in addition to PID number

No... you can do this using 'gdbserver :1234 --attach `pidof -s foo`. 
Killall5/pidof is a 9K binary; I don't want to add this feature to the
server directly when it's already available so lightweightly.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]