From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id RSFwIveaXWGyRAAAWB0awg (envelope-from ) for ; Wed, 06 Oct 2021 08:47:51 -0400 Received: by simark.ca (Postfix, from userid 112) id 7B7A71EE1F; Wed, 6 Oct 2021 08:47:51 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 0A3EC1E4A3 for ; Wed, 6 Oct 2021 08:47:50 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 99BFE3857C69 for ; Wed, 6 Oct 2021 12:47:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99BFE3857C69 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1633524469; bh=TDfZ2GG/iOxWxPCDyzRoGM4tYNFLKNgAilCej5JFE/U=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=rEjkBso+6vtfVe/qR1buZLkbnw+x7q9LyfGDDk2kVmggGPpWgT/eZX0rXyC5+xqeX egYWxkltvL2ENv3jwrQbaVBV/Y1qfE3sWV5h+7Mv6J4VohpEpsIiPrcOQWXe5+TuVL EYXtcprbjrJySDGkdAQqgM9Rw9qg9UynqxhIV1Mo= Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 06E0F3858427 for ; Wed, 6 Oct 2021 12:47:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 06E0F3858427 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 3EF19224FA; Wed, 6 Oct 2021 12:47:30 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0A74713C57; Wed, 6 Oct 2021 12:47:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id OJP1OuGaXWHQRgAAMHmgww (envelope-from ); Wed, 06 Oct 2021 12:47:29 +0000 Subject: Re: [PATCH] gdb/doc: improve 'show print elements' description To: Andrew Burgess , gdb-patches@sourceware.org References: <20211006113159.2503732-1-andrew.burgess@embecosm.com> Message-ID: <8bd7e2ef-d807-aa37-926f-62557cdecbdd@suse.de> Date: Wed, 6 Oct 2021 14:47:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20211006113159.2503732-1-andrew.burgess@embecosm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 10/6/21 1:31 PM, Andrew Burgess wrote: > The documentation for 'show print elements' contains the line: > > If the number is 0, then the printing is unlimited. > > However, this line is now out of date as can be seen by this GDB > session: > > (gdb) set print elements 0 > (gdb) show print elements > Limit on string chars or array elements to print is unlimited. > > The value 0 does indeed mean unlimited, and this is described in the > 'set print elements' section, however, for 'show print elements' the > user will never see the value 0, so lets just remove that bit from the > docs. LGTM.. Thanks, - Tom > --- > gdb/doc/gdb.texinfo | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo > index c156a1d6739..a6f207a41a7 100644 > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -11376,7 +11376,6 @@ > > @item show print elements > Display the number of elements of a large array that @value{GDBN} will print. > -If the number is 0, then the printing is unlimited. > > @anchor{set print frame-arguments} > @item set print frame-arguments @var{value} >