From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14545 invoked by alias); 30 Jul 2010 09:02:39 -0000 Received: (qmail 14489 invoked by uid 22791); 30 Jul 2010 09:02:37 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM X-Spam-Check-By: sourceware.org Received: from mail-ww0-f43.google.com (HELO mail-ww0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 30 Jul 2010 09:02:33 +0000 Received: by wwb31 with SMTP id 31so1239469wwb.12 for ; Fri, 30 Jul 2010 02:02:31 -0700 (PDT) Received: by 10.227.130.31 with SMTP id q31mr1348336wbs.179.1280480550298; Fri, 30 Jul 2010 02:02:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.186.205 with HTTP; Fri, 30 Jul 2010 02:02:06 -0700 (PDT) In-Reply-To: <83y6ctbbpw.fsf@gnu.org> References: <83y6ctbbpw.fsf@gnu.org> From: Hui Zhu Date: Fri, 30 Jul 2010 09:02:00 -0000 Message-ID: Subject: Re: [RFA/RFC/DOC] Fix the different between behavior of "detach inferior" "kill inferior" and doc To: Eli Zaretskii , Joel Brobecker Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00574.txt.bz2 On Fri, Jul 30, 2010 at 16:44, Eli Zaretskii wrote: >> From: Hui Zhu >> Date: Fri, 30 Jul 2010 16:13:42 +0800 >> Cc: Eli Zaretskii >> >> So I make a patch to update the doc. >> >> Thanks, >> Hui >> >> 2010-07-30 =A0Hui Zhu =A0 >> >> =A0 =A0 =A0 * gdb.texinfo (Inferiors and Programs): Update the introduce= of >> =A0 =A0 =A0 "detach inferior" and "kill inferior". >> >> >> --- >> =A0doc/gdb.texinfo | =A0 =A04 ++-- >> =A01 file changed, 2 insertions(+), 2 deletions(-) >> >> --- a/doc/gdb.texinfo >> +++ b/doc/gdb.texinfo >> @@ -2481,12 +2481,12 @@ using the @w{@code{kill inferior}} comma >> =A0@kindex detach inferior @var{infno} >> =A0@item detach inferior @var{infno} >> =A0Detach from the inferior identified by @value{GDBN} inferior number >> -@var{infno}, and remove it from the inferior list. >> +@var{infno}. >> >> =A0@kindex kill inferior @var{infno} >> =A0@item kill inferior @var{infno} >> =A0Kill the inferior identified by @value{GDBN} inferior number >> -@var{infno}, and remove it from the inferior list. >> +@var{infno}. >> =A0@end table > > Assuming that the code behaves as intended (i.e. this isn't a bug), I > suggest the following text instead: > > =A0Kill the inferior identified by @value{GDBN} inferior number > =A0@var{infno}. =A0Note that the inferior's entry still stays on the list > =A0of inferiors shown by @code{info inferiors}, but its Description will > =A0show @samp{}. > > and similarly for "detach". > > Thanks. > OK. I made a new version. Joel, do you think 7.2 need this patch? Thanks, Hui 2010-07-30 Hui Zhu * gdb.texinfo (Inferiors and Programs): Update the introduce of "detach inferior" and "kill inferior". --- doc/gdb.texinfo | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- a/doc/gdb.texinfo +++ b/doc/gdb.texinfo @@ -2481,12 +2481,16 @@ using the @w{@code{kill inferior}} comma @kindex detach inferior @var{infno} @item detach inferior @var{infno} Detach from the inferior identified by @value{GDBN} inferior number -@var{infno}, and remove it from the inferior list. +@var{infno}. Note that the inferior's entry still stays on the list +of inferiors shown by @code{info inferiors}, but its Description will +show @samp{}. @kindex kill inferior @var{infno} @item kill inferior @var{infno} Kill the inferior identified by @value{GDBN} inferior number -@var{infno}, and remove it from the inferior list. +@var{infno}. Note that the inferior's entry still stays on the list +of inferiors shown by @code{info inferiors}, but its Description will +show @samp{}. @end table After the successful completion of a command such as @code{detach},