From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2393 invoked by alias); 25 Jun 2008 14:45:54 -0000 Received: (qmail 2378 invoked by uid 22791); 25 Jun 2008 14:45:53 -0000 X-Spam-Check-By: sourceware.org Received: from imr1.ericy.com (HELO imr1.ericy.com) (198.24.6.9) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 25 Jun 2008 14:45:32 +0000 Received: from eusrcmw750.eamcs.ericsson.se (eusrcmw750.exu.ericsson.se [138.85.77.50]) by imr1.ericy.com (8.13.1/8.13.1) with ESMTP id m5PEjPs3031560; Wed, 25 Jun 2008 09:45:25 -0500 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw750.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Wed, 25 Jun 2008 09:45:53 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 Subject: RE: [MI] argv/argc/args Date: Wed, 25 Jun 2008 14:45:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA04291206@ecamlmw720.eamcs.ericsson.se> In-Reply-To: <200806251306.27720.vladimir@codesourcery.com> From: "Marc Khouzam" To: "Vladimir Prus" , X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00250.txt.bz2 DQoNCj4gRnJvbTogVmxhZGltaXIgUHJ1cw0KPiBTZW50OiBXZWRuZXNkYXks IEp1bmUgMjUsIDIwMDggNTowNiBBTQ0KPiANCj4gSW4gR0RCIDYuOCBjb2Rl YmFzZSwgdGhlcmUgd2VyZSAzIGRpZmZlcmVudCB3YXlzIGFuIE1JIA0KPiBj b21tYW5kIGNhbiBiZSBwcm9jZXNzZWQ6DQo+IA0KPiAxLiBTbmVha2luZyB2 aWEgQ0xJIGRpcm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at.com Received: (qmail 30139 invoked by alias); 25 Jun 2008 15:08:16 -0000 Received: (qmail 30079 invoked by uid 22791); 25 Jun 2008 15:08:15 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 25 Jun 2008 15:07:54 +0000 Received: (qmail 5149 invoked from network); 25 Jun 2008 15:07:52 -0000 Received: from unknown (HELO wind.local) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 25 Jun 2008 15:07:52 -0000 From: Vladimir Prus To: "Marc Khouzam" , gdb@sources.redhat.com Subject: Re: [MI] argv/argc/args Date: Wed, 25 Jun 2008 15:08:00 -0000 User-Agent: KMail/1.9.9 References: <6D19CA8D71C89C43A057926FE0D4ADAA04291206@ecamlmw720.eamcs.ericsson.se> In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA04291206@ecamlmw720.eamcs.ericsson.se> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806251907.58610.vladimir@codesourcery.com> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Delivered-To: mailing list gdb@sourceware.org X-SW-Source: 2008-06/txt/msg00251.txt.bz2 Content-length: 1518 On Wednesday 25 June 2008 18:45:52 you wrote: > > > From: Vladimir Prus > > Sent: Wednesday, June 25, 2008 5:06 AM > > > > In GDB 6.8 codebase, there were 3 different ways an MI > > command can be processed: > > > > 1. Sneaking via CLI directly (calling execute_command) > > 2. Calling a function, that takes argc/argv pair > > 3. Calling a function, that takes a string 'args' parameter with > > the raw part of MI command string after the command name. > > > > Some time ago, I've checked in a patch to remove (3), to clarify the > > code. Dan has raised concerns about backward compatibility, so here's > > an attempt to analyze the change afresh. > > I never quite understood the quoting for MI commands. If I recall, > some commands need quotes when they use spaces, while others are not > allowed to use quotes. I does cause a bit of a headache. This is the direct result of using 3 different approaches. (2) above follow the MI quoting rules, while (1) and (3) do not. For example, the 'break-condition' is sneaked via CLI, so does not like quotes, while -var-create is well-behaving MI command, and needs quotes. > What is the impact of removing (3) above? Quotes will be needed > or will not be allowed? Will be needed, except for commands handled via (1). Ideally, we'd require all commands to use MI quoting, but this might break lots of things. You might recall that our non-stop delivery to you started to require quoting for -break-condition -- which you did not exactly like :-) - Volodya