From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1070 invoked by alias); 23 Nov 2014 09:32:50 -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 1059 invoked by uid 89); 23 Nov 2014 09:32:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Sun, 23 Nov 2014 09:32:39 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3jlmVq3F0Yz3hjd2; Sun, 23 Nov 2014 10:32:34 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3jlmVp612Vzvh1w; Sun, 23 Nov 2014 10:32:34 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 6uNhJjbksONn; Sun, 23 Nov 2014 10:32:34 +0100 (CET) X-Auth-Info: mnHfSEhkLBQeG7eRR4aRDPXBOM4lkWlAhy3BsOo+Hk6HaF8DuGgMp9RHetePUN1B Received: from igel.home (ppp-188-174-151-230.dynamic.mnet-online.de [188.174.151.230]) by mail.mnet-online.de (Postfix) with ESMTPA; Sun, 23 Nov 2014 10:32:34 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id D4B6D2C3616; Sun, 23 Nov 2014 10:32:33 +0100 (CET) From: Andreas Schwab To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: RFC: "set" command with 2 arguments instead of one? References: <20141123042417.GA839@adacore.com> X-Yow: Wow! Look!! A stray meatball!! Let's interview it! Date: Sun, 23 Nov 2014 09:32:00 -0000 In-Reply-To: <20141123042417.GA839@adacore.com> (Joel Brobecker's message of "Sun, 23 Nov 2014 08:24:17 +0400") Message-ID: <87bnny45zi.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2014-11/txt/msg00558.txt.bz2 Joel Brobecker writes: > It proposes the introduction of a couple of commands, one to dump > the contents of the of the bounds table, and one to set the bounds > for any given address. Since those commands are MPX-specific, > I would like to have them prefixed somehow. But the beyond the > fact that I'd like to have them prefixed, I was wondering if > set/show commands could be used for that. Eg: > > show mpx bound ADDR > set mpx bound ADDR LBOUND UBOUND > > The reason why I am asking for comments is that the "set" command > above has a syntax which is slightly unusual for "set" commands > in the sense that "set" commands nearly always only have one argument, > whereas it has 3 in this case. How do you parse the arguments if they are arbitrary expressions? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."