From: Daniel Jacobowitz <drow@mvista.com>
To: glenn_engel@agilent.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: patch to gdbserver for names instead of pid numbers
Date: Tue, 10 Dec 2002 11:37:00 -0000 [thread overview]
Message-ID: <20021210193604.GA16350@nevyn.them.org> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2002-12-10 19:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-09 14:33 glenn_engel
2002-12-10 11:37 ` Daniel Jacobowitz [this message]
2002-12-10 11:40 glenn_engel
2002-12-10 12:01 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021210193604.GA16350@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
--cc=glenn_engel@agilent.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox