From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53393 invoked by alias); 13 Apr 2015 15:32:11 -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 53380 invoked by uid 89); 13 Apr 2015 15:32:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_20,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mga01.intel.com Received: from mga01.intel.com (HELO mga01.intel.com) (192.55.52.88) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 13 Apr 2015 15:32:10 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 13 Apr 2015 08:31:49 -0700 X-ExtLoop1: 1 Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by orsmga001.jf.intel.com with ESMTP; 13 Apr 2015 08:31:48 -0700 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.132]) by IRSMSX152.ger.corp.intel.com ([169.254.6.41]) with mapi id 14.03.0224.002; Mon, 13 Apr 2015 16:31:40 +0100 From: "Tedeschi, Walfred" To: Joel Brobecker , Doug Evans CC: Andreas Schwab , "gdb-patches@sourceware.org" Subject: RE: RFC: "set" command with 2 arguments instead of one? Date: Mon, 13 Apr 2015 15:32:00 -0000 Message-ID: References: <20141123042417.GA839@adacore.com> <87bnny45zi.fsf@igel.home> <20141123095317.GE5774@adacore.com> <20141124071258.GI5774@adacore.com> In-Reply-To: <20141124071258.GI5774@adacore.com> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00465.txt.bz2 Joel, Andreas, Doug and all, 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? Thanks a lot and regards, -Fred -----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=20 > future-proofing. > One way some commands separate expressions is with commas. > I'm not fond of optional commas (setting aside the thread on info=20 > macro -at LOCATION,). > IOW, if it turns out that we want to use commas down the road to=20 > separate expressions here, then I'd prefer the commas be required=20 > today. > E.g., set mpx bound ADDR, LBOUND, UBOUND > As for how to process multiple arguments to a "set" command, one way=20 > would be to stage the value in a string parameter, and then have a set=20 > 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 exp= ressions as well. But, if that's the way people prefer, then having a stand= ard gdb_buildargv-like API that everyone consistently uses will make it eas= ier 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