From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120438 invoked by alias); 5 Jul 2019 19:58:32 -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 120430 invoked by uid 89); 5 Jul 2019 19:58:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:619, HContent-Transfer-Encoding:8bit X-HELO: mailsec106.isp.belgacom.be Received: from mailsec106.isp.belgacom.be (HELO mailsec106.isp.belgacom.be) (195.238.20.102) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 05 Jul 2019 19:58:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1562356711; x=1593892711; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=W4mfGDWertojZfSk7cMc4G7bk1f9H7vi8PmD8W8AF7A=; b=z3+Avcq5Jltn3lC6JT69SI9uPFKjbWAotaS0/DnynUmPBTkpOMIPAyV/ uF/czefJGGF6zMZ35tKR70rbuvV8zw==; Received: from 96.218-128-109.adsl-dyn.isp.belgacom.be (HELO md.home) ([109.128.218.96]) by relay.skynet.be with ESMTP/TLS/DHE-RSA-AES128-GCM-SHA256; 05 Jul 2019 21:58:29 +0200 From: Philippe Waroquiers To: gdb-patches@sourceware.org Subject: [RFAv2 0/3] Convenience functions $_gdb_setting/$_gdb_int_setting Date: Fri, 05 Jul 2019 19:58:00 -0000 Message-Id: <20190705195823.3472-1-philippe.waroquiers@skynet.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00175.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. This is a v2 that just rebase to a recent master, as the code has to be updated due to the 'cli option' framework.