From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10204 invoked by alias); 10 Dec 2002 19:35:25 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 10194 invoked from network); 10 Dec 2002 19:35:23 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 10 Dec 2002 19:35:23 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18Ls2T-0005DT-00; Tue, 10 Dec 2002 15:35:38 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18LqAm-0004J9-00; Tue, 10 Dec 2002 14:36:04 -0500 Date: Tue, 10 Dec 2002 11:37:00 -0000 From: Daniel Jacobowitz To: glenn_engel@agilent.com Cc: gdb-patches@sources.redhat.com Subject: Re: patch to gdbserver for names instead of pid numbers Message-ID: <20021210193604.GA16350@nevyn.them.org> Mail-Followup-To: glenn_engel@agilent.com, gdb-patches@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2002-12/txt/msg00330.txt.bz2 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 > > * 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