From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E3A5C3857C4E; Wed, 26 Jan 2022 20:05:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E3A5C3857C4E From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug python/28820] gdb.parameter returns Non for Python integer user-defined parameter with value 0 Date: Wed, 26 Jan 2022 20:05:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2022 20:05:37 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28820 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot o= rg --- Comment #1 from Tom Tromey --- This code seems to date from the earliest days: case var_integer: if (var.get () =3D=3D INT_MAX) Py_RETURN_NONE; /* Fall through. */ Maybe the mystery is why the initial value is 0, since 0 is supposed to mean "unlimited" here. I tend to think all the Py_RETURN_NONEs here should be removed somehow. --=20 You are receiving this mail because: You are on the CC list for the bug.=