From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89208 invoked by alias); 27 Apr 2018 06:36:07 -0000 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 Received: (qmail 86752 invoked by uid 89); 27 Apr 2018 06:36:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.9 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:134, Hx-languages-length:1382, unlimited X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Apr 2018 06:36:02 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBwz6-0000ZB-3J for gdb-patches@sourceware.org; Fri, 27 Apr 2018 02:36:01 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBwz5-0000Z7-VR; Fri, 27 Apr 2018 02:35:56 -0400 Received: from [176.228.60.248] (port=3516 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fBwz5-0003YN-7D; Fri, 27 Apr 2018 02:35:55 -0400 Date: Fri, 27 Apr 2018 06:36:00 -0000 Message-Id: <83d0ylupf7.fsf@gnu.org> From: Eli Zaretskii To: Tom Tromey CC: gdb-patches@sourceware.org In-reply-to: <20180426222003.9059-1-tom@tromey.com> (message from Tom Tromey on Thu, 26 Apr 2018 16:20:03 -0600) Subject: Re: [RFA] Handle var_zuinteger and var_zuinteger_unlimited from Python Reply-to: Eli Zaretskii References: <20180426222003.9059-1-tom@tromey.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2018-04/txt/msg00554.txt.bz2 > From: Tom Tromey > Cc: Tom Tromey > Date: Thu, 26 Apr 2018 16:20:03 -0600 > > diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi > index ebd48fffe7..ca9114864b 100644 > --- a/gdb/doc/python.texi > +++ b/gdb/doc/python.texi > @@ -3800,6 +3800,20 @@ The value is a filename. This is just like > The value is an integer. This is like @code{PARAM_INTEGER}, except 0 > is interpreted as itself. > > +@findex PARAM_ZUINTEGER > +@findex gdb.PARAM_ZUINTEGER > +@item gdb.PARAM_ZUINTEGER > +The value is an unsigned integer. This is like @code{PARAM_INTEGER}, > +except 0 is interpreted as itself, and the value cannot be negative. > + > +@findex PARAM_ZUINTEGER_UNLIMITED > +@findex gdb.PARAM_ZUINTEGER_UNLIMITED > +@item gdb.PARAM_ZUINTEGER_UNLIMITED > +The value is an unsigned integer. This is like @code{PARAM_ZUINTEGER}, > +except 0 is interpreted as itself, and the special value -1 should be > +interpreted to mean ``unlimited''. Other negative values are not > +allowed. > + This part is approved, but it sounds like only 1 of the 3 differences from PARAM_ZUINTEGER should actually be mentioned, as the other 2 -- that 0 is interpreted as itself and negative values are generally not allowed -- are already present in PARAM_ZUINTEGER. Or did I miss something? Thanks.