From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19876 invoked by alias); 28 Apr 2019 15:18:28 -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 19865 invoked by uid 89); 28 Apr 2019 15:18:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-9.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=giving, HContent-Transfer-Encoding:8bit X-HELO: mailsec108.isp.belgacom.be Received: from mailsec108.isp.belgacom.be (HELO mailsec108.isp.belgacom.be) (195.238.20.104) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 28 Apr 2019 15:18:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1556464705; x=1588000705; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=zk0oxY9OCL4G1d97sdHnIE8DjFGHSPzy2ox4Q4qMXIw=; b=IptHprvBkRkxpBhDt3sPNXp9FzHR9lSzSz0dlg9SFDwzgg8jPWSwtXhi PmVG5G3QIhBBASvBnJM78EY0geBlwA==; Received: from 59.151-129-109.adsl-dyn.isp.belgacom.be (HELO md.home) ([109.129.151.59]) by relay.skynet.be with ESMTP/TLS/DHE-RSA-AES128-GCM-SHA256; 28 Apr 2019 17:18:23 +0200 From: Philippe Waroquiers To: gdb-patches@sourceware.org Subject: [RFA 0/3] Convenience functions $_gdb_setting/$_gdb_int_setting Date: Sun, 28 Apr 2019 15:18:00 -0000 Message-Id: <20190428151816.31598-1-philippe.waroquiers@skynet.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00611.txt.bz2 As part of the discussion of 'show | set may-call-functions [on|off]', Eli suggested to have a way to access the GDB settings from user defined commands. So, this patch series implements this. 2 functions are provided: * $_gdb_setting that gives access to all settings, giving back a string value. * $_gdb_int_setting, giving access to boolean, auto-boolean and integers. This is easier to use for such types than the string version.