This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: patch to gdbserver for names instead of pid numbers
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: glenn_engel at agilent dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 10 Dec 2002 14:36:04 -0500
- Subject: Re: patch to gdbserver for names instead of pid numbers
- References: <FC0B9DA2600ED4118F76009027AA5DDD06B3F0FA@ALEX2>
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