From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8290 invoked by alias); 22 Feb 2010 14:23:57 -0000 Received: (qmail 8272 invoked by uid 22791); 22 Feb 2010 14:23:56 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Feb 2010 14:23:52 +0000 Received: (qmail 7021 invoked from network); 22 Feb 2010 14:23:50 -0000 Received: from unknown (HELO wind.localnet) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 22 Feb 2010 14:23:50 -0000 From: Vladimir Prus To: Daniel Jacobowitz Subject: Re: Make -exec-run and -exec-until into 'real' MI commands Date: Mon, 22 Feb 2010 14:23:00 -0000 User-Agent: KMail/1.12.2 (Linux/2.6.31-19-generic-pae; KDE/4.3.2; i686; ; ) Cc: gdb-patches@sourceware.org References: <201001131629.25873.vladimir@codesourcery.com> <201001132313.24694.vladimir@codesourcery.com> <20100113202620.GB3955@caradoc.them.org> In-Reply-To: <20100113202620.GB3955@caradoc.them.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201002221723.48625.vladimir@codesourcery.com> 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 X-SW-Source: 2010-02/txt/msg00528.txt.bz2 On Wednesday 13 January 2010 23:26:21 Daniel Jacobowitz wrote: > On Wed, Jan 13, 2010 at 11:13:24PM +0300, Vladimir Prus wrote: > > I think that only "\"" won't be preserved. While "a b" will be present in reconstructed > > string with quotes. > > Won't we have problems with Windows paths, for example? > > -exec-run 'c:\My Documents\test' "c:\My Documents\test" > > % exec /usr/bin/gdb 'c:\My Documents\test' "c:\My Documents\test" > > But the MI parser is going to turn that second \t into a tab > if I'm not mistaken. This is a really hard transformation to > reverse. > > > I believe the fact that no known frontends use args was raised the last time, > > but you still wanted to assume they exist. > > Blech, I hate having to argue with myself. > > I suggest asking for a second opinion then. I don't think this > quoting is good enough to be a good idea. I think we can get away > without it for -exec-run. I don't know about -exec-until. Apparently, nobody seem to have a second opinion :-( So, unless I hear objections by tomorrow, I will commit a patch that: a) make -exec-run refuse to accept any parameters, as no frontend that cares is known. b) does nothing with -exec-until, since your point about \t seems like a killer. I'll fix -exec-until for MI3, whenever that comes around. Thanks, -- Vladimir Prus CodeSourcery vladimir@codesourcery.com (650) 331-3385 x722