From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16020 invoked by alias); 5 Jan 2002 21:12:37 -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 15977 invoked from network); 5 Jan 2002 21:12:36 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 5 Jan 2002 21:12:36 -0000 Received: from redhat.com (reddwarf.cygnus.com [205.180.231.12]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id NAA28309; Sat, 5 Jan 2002 13:12:29 -0800 (PST) Message-ID: <3C376B1E.66517F6E@redhat.com> Date: Sat, 05 Jan 2002 13:12:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Eli Zaretskii CC: gdb-patches@sources.redhat.com Subject: Re: [RFA] Add new cmd line parameter "--pid" for attach. References: <200201050321.g053L6l16505@reddwarf.cygnus.com> <6436-Sat05Jan2002105609+0200-eliz@is.elta.co.il> Content-Type: multipart/mixed; boundary="------------EFC698DD8975B098ECB91CB4" X-SW-Source: 2002-01/txt/msg00079.txt.bz2 This is a multi-part message in MIME format. --------------EFC698DD8975B098ECB91CB4 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-length: 416 Eli Zaretskii wrote: > > > Date: Fri, 4 Jan 2002 19:21:06 -0800 > > From: Michael Snyder > > > > --command=FILE Execute GDB commands from FILE.\n\ > > --core=COREFILE Analyze the core dump COREFILE.\n\ > > + --pid=PID Attach to running process PID.\n\ > > ", stream); > > The new command-line option should be described in gdb.texinfo as > well. Sure. How's this? --------------EFC698DD8975B098ECB91CB4 Content-Type: text/plain; charset=us-ascii; name="pid.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pid.patch" Content-length: 1033 2002-01-05 Michael Snyder * gdb.texinfo (--pid): Document new command line option (attach). Index: gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.62 diff -p -r1.62 gdb.texinfo *** gdb.texinfo 2001/12/30 03:52:20 1.62 --- gdb.texinfo 2002/01/05 21:10:15 *************** Connect to process ID @var{number}, as w *** 851,856 **** --- 851,867 ---- (unless there is a file in core-dump format named @var{number}, in which case @samp{-c} specifies that file as a core dump to read). + @item -pid @ver{number} + @itemx -p @var{number} + @cindex @code{--pid} + @cindex @code{-p} + Use @var{number} as a process ID to attach to. + + @item -p @var{number} + Connect to process ID @var{number}, as with the @code{attach} command. + If there is no such process, @value{GDBN} will attempt to open a core + file named @var{number}. + @item -command @var{file} @itemx -x @var{file} @cindex @code{--command} --------------EFC698DD8975B098ECB91CB4--