From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id E1A303858403 for ; Mon, 1 Nov 2021 18:05:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E1A303858403 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-240-M89TIwrWMd-DR-49RLjQPw-1; Mon, 01 Nov 2021 14:05:14 -0400 X-MC-Unique: M89TIwrWMd-DR-49RLjQPw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5289E138C4E0; Mon, 1 Nov 2021 18:05:13 +0000 (UTC) Received: from [10.97.116.50] (ovpn-116-50.gru2.redhat.com [10.97.116.50]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0E9CD2C6ED; Mon, 1 Nov 2021 18:05:11 +0000 (UTC) Message-ID: <638f62f7-1ba7-7c5f-69ae-e00c4605d826@redhat.com> Date: Mon, 1 Nov 2021 15:05:08 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [RFC][PATCH 2/2] gdb/doc: Document the exit command To: Enze Li , gdb-patches@sourceware.org References: <20211030102035.32391-1-lienze2010@hotmail.com> <20211030110629.4860-1-lienze2010@hotmail.com> From: Bruno Larsen In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-13.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2021 18:05:17 -0000 On 10/30/21 08:06, Enze Li via Gdb-patches wrote: > Update "Quitting GDB" section. > > * gdb/doc/gdb.texinfo: (Quitting GDB): Document "exit". > --- > gdb/doc/gdb.texinfo | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > > diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo > index e0b065e9663..0529fa71d50 100644 > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -841,7 +841,7 @@ The essentials are: > @item > type @samp{@value{GDBP}} to start @value{GDBN}. > @item > -type @kbd{quit} or @kbd{Ctrl-d} to exit. > +type @kbd{quit}, @kbd{exit} or @kbd{Ctrl-d} to exit. > @end itemize > > @menu > @@ -1580,14 +1580,16 @@ Options,,Choosing Modes}. > > @table @code > @kindex quit @r{[}@var{expression}@r{]} > +@kindex exit @r{[}@var{expression}@r{]} > @kindex q @r{(@code{quit})} > @item quit @r{[}@var{expression}@r{]} > +@item exit @r{[}@var{expression}@r{]} > @itemx q > To exit @value{GDBN}, use the @code{quit} command (abbreviated > -@code{q}), or type an end-of-file character (usually @kbd{Ctrl-d}). If you > -do not supply @var{expression}, @value{GDBN} will terminate normally; > -otherwise it will terminate using the result of @var{expression} as the > -error code. > +@code{q}), the @code{exit} command, or type an end-of-file > +character (usually @kbd{Ctrl-d}). If you do not supply @var{expression}, > +@value{GDBN} will terminate normally; otherwise it will terminate using > +the result of @var{expression} as the error code. > @end table > > @cindex interrupt > This looks like an alright idea. But you should also update the man page (lower down on the doc file) if you end up making new changes to this patch series -- Cheers! Bruno Larsen