From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101299 invoked by alias); 6 Jul 2019 11:21:21 -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 101285 invoked by uid 89); 6 Jul 2019 11:21:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 06 Jul 2019 11:21:20 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hjiko-0007Ld-2b; Sat, 06 Jul 2019 07:21:18 -0400 Received: from [176.228.60.248] (port=1986 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hjikm-0000bD-MS; Sat, 06 Jul 2019 07:21:17 -0400 Date: Sat, 06 Jul 2019 11:21:00 -0000 Message-Id: <83muhr8l3t.fsf@gnu.org> From: Eli Zaretskii To: Philippe Waroquiers CC: gdb-patches@sourceware.org In-reply-to: <1562410479.1521.1.camel@skynet.be> (message from Philippe Waroquiers on Sat, 06 Jul 2019 12:54:39 +0200) Subject: Re: [RFAv2 3/3] NEWS and documentation for $_gdb_setting and $_gdb_int_setting. References: <20190705195823.3472-1-philippe.waroquiers@skynet.be> <20190705195823.3472-4-philippe.waroquiers@skynet.be> <83ftnjadge.fsf@gnu.org> <1562410479.1521.1.camel@skynet.be> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00193.txt.bz2 > From: Philippe Waroquiers > Cc: gdb-patches@sourceware.org > Date: Sat, 06 Jul 2019 12:54:39 +0200 > > > The last part begs a question how to know whether 'unlimited' will > > yield zero or -1? Can't we always return -1? > I think it is better to keep the same convention as what is accepted > by the "set" command: some settings are using 0 to mean unlimited > and some are using -1. > I have tried to describe this in the doc RFAv3. The new text is OK, but I'd suggest to say in addition something like "See the documentation of the corresponding @code{set} command for the numerical value equivalent to @code{unlimited}." > > Btw, do we have a way of determining whether a given convenience > > function exists in the current GDB? For variables, one can use > > $_isvoid, I think, but what about functions? > > I do not know of any way to see if a user defined function or convenience > function is defined. > For the GDB convenience function, the GDB major/minor can be used to > determine what is available. OK, thanks.