From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7906 invoked by alias); 8 Jan 2002 00:14:38 -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 7863 invoked from network); 8 Jan 2002 00:14:36 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 8 Jan 2002 00:14: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 QAA15426; Mon, 7 Jan 2002 16:14:30 -0800 (PST) Message-ID: <3C3A38BD.CD562A3E@redhat.com> Date: Mon, 07 Jan 2002 16:14: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: <3C39F0DA.762692AF@redhat.com> <7458-Mon07Jan2002222553+0200-eliz@is.elta.co.il> Content-Type: multipart/mixed; boundary="------------130B8BE871DA1A6F6FB24022" X-SW-Source: 2002-01/txt/msg00116.txt.bz2 This is a multi-part message in MIME format. --------------130B8BE871DA1A6F6FB24022 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-length: 748 Eli Zaretskii wrote: > > > Date: Mon, 07 Jan 2002 11:02:50 -0800 > > From: Michael Snyder > > > > > > @item -core @var{file} > > > @itemx -c @var{file} > > > @cindex @code{--core} > > > @cindex @code{-c} > > > Use file @var{file} as a core dump to examine. > > > > > > This doesn't describe --core twice, and doesn't use @item -c twice. > > > > Look at the next lines after that. > > You mean, this? > > @item -c @var{number} > Connect to process ID @var{number}, as with the @code{attach} command > > If so, it's not entirely the same: the first -c says "-c FILE", the > second says "-c NUMBER". In your case, both say "-p NUMBER", so I > think it's confusing to have both of them. OK, how's this? --------------130B8BE871DA1A6F6FB24022 Content-Type: text/plain; charset=us-ascii; name="pid.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pid.patch" Content-length: 1170 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.68 diff -p -r1.68 gdb.texinfo *** gdb.texinfo 2002/01/07 09:28:43 1.68 --- gdb.texinfo 2002/01/08 00:12:51 *************** file. *** 937,945 **** Use file @var{file} as a core dump to examine. @item -c @var{number} ! Connect to process ID @var{number}, as with the @code{attach} command ! (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 -command @var{file} @itemx -x @var{file} --- 937,949 ---- Use file @var{file} as a core dump to examine. @item -c @var{number} ! @item -pid @ver{number} ! @itemx -p @var{number} ! @cindex @code{--pid} ! @cindex @code{-p} ! 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} --------------130B8BE871DA1A6F6FB24022--