From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39907 invoked by alias); 14 Apr 2015 12:49:23 -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 39897 invoked by uid 89); 14 Apr 2015 12:49:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 14 Apr 2015 12:49:16 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 7EE3211646F; Tue, 14 Apr 2015 08:49:14 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JK7w7D4vasbf; Tue, 14 Apr 2015 08:49:14 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 58035116437; Tue, 14 Apr 2015 08:49:13 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 1CB0240EAD; Tue, 14 Apr 2015 05:49:20 -0700 (PDT) Date: Tue, 14 Apr 2015 12:49:00 -0000 From: Joel Brobecker To: "Tedeschi, Walfred" Cc: Doug Evans , Andreas Schwab , "gdb-patches@sourceware.org" Subject: Re: RFC: "set" command with 2 arguments instead of one? Message-ID: <20150414124920.GH4704@adacore.com> References: <20141123042417.GA839@adacore.com> <87bnny45zi.fsf@igel.home> <20141123095317.GE5774@adacore.com> <20141124071258.GI5774@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2015-04/txt/msg00523.txt.bz2 > Sorry for the long delay here. Now I could come back to the patches again. > > Was there any outcome on that discussion. How do you think I could use > the multiple arguments? I don't remember any reply to the message you quote above, which summarizes my current thinking and position. As you indicate, it is a question of making a decision. Global Maintainers: What do you think? Let's make a decision so that Walfred can resume his work on this. Thanks! > > -----Original Message----- > From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-owner@sourceware.org] On Behalf Of Joel Brobecker > Sent: Monday, November 24, 2014 8:13 AM > To: Doug Evans > Cc: Andreas Schwab; gdb-patches@sourceware.org > Subject: Re: RFC: "set" command with 2 arguments instead of one? > > > This feels like a case where we need to at least think about some > > future-proofing. > > One way some commands separate expressions is with commas. > > I'm not fond of optional commas (setting aside the thread on info > > macro -at LOCATION,). > > IOW, if it turns out that we want to use commas down the road to > > separate expressions here, then I'd prefer the commas be required > > today. > > E.g., set mpx bound ADDR, LBOUND, UBOUND > > > As for how to process multiple arguments to a "set" command, one way > > would be to stage the value in a string parameter, and then have a set > > handler post-process the result. > > I think using commas systematically is making it worse for ourselves, since it prevents us from using gdb_buildargv to parse the command arguments for us. Commas also have a meaning in C, so arguably they could be used in expressions as well. But, if that's the way people prefer, then having a standard gdb_buildargv-like API that everyone consistently uses will make it easier for me to accept that decision. > > -- > Joel > Intel GmbH > Dornacher Strasse 1 > 85622 Feldkirchen/Muenchen, Deutschland > Sitz der Gesellschaft: Feldkirchen bei Muenchen > Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk > Registergericht: Muenchen HRB 47456 > Ust.-IdNr./VAT Registration No.: DE129385895 > Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052 -- Joel